summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev (follow)
Commit message (Collapse)AuthorAge
...
* | | | | | | 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>
* | | | | | | | Merge "msm: mdss: Fix number accuracy for backlight to brightness"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Fix number accuracy for backlight to brightnessXu Yang2017-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the number accuracy when convert backlight to brightness. CRs-Fixed: 2054751 Change-Id: I5d30b65e795ad84d2ba897a9d5be2a8bb36f32eb Signed-off-by: Xu Yang <yangxu@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: dp: use fixed NVID for VGA dongles"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | msm: mdss: dp: use fixed NVID for VGA donglesAravind Venkateswaran2017-06-13
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most VGA dongles expect the source to use a fixed NVID value of 0x8000 even though the source may be operating in a synchronous clocking mode. Using any other values for NVID may result in no display on the attached VGA sink. Add support for this by calculating the correct MVID based on the fixed NVID value. CRs-Fixed: 1095718 Change-Id: Icfef570c8584a51342015a9981b778436edaf84a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Add cursor validation for hflip"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | msm: mdss: Add cursor validation for hflipAnimesh Kishore2017-06-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hflip is not supported on cursor pipes as there is no flip buffer in the hardware. Invalidate any commit request for cursor hflip. Change-Id: I4b0ad28caffb75a4bd5a928a90daa6aa59f51848 Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
* | | | | | | | | | Merge "fbdev: msm: fix issue preventing cursor_buf address to be stored"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | fbdev: msm: fix issue preventing cursor_buf address to be storedKrishna Manikandan2017-06-06
| | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug in cursor which prevents the virtual address of the registers to be stored in the driver context. Change-Id: Ica8a9548911da5a32903893b0e494d052e366285 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>