summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev (follow)
Commit message (Collapse)AuthorAge
...
* | | | | | | | | | Merge "fbdev: msm: fix unaligned access problem"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | fbdev: msm: fix unaligned access problemKrishna Manikandan2017-06-08
| | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debug offset comes from the user and can hold any value which can cause unaligned access. This change fixes the unaligned access problem on debug offset by properly aligning it. Change-Id: Ic61c2651986ea6c98cc7d58e27af3e5fe6e42a88 Signed-off-by: Harsh Sahu <hsahu@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | | Merge "msm: mdss: validate number of cea blocks before reading from edid_buf"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | msm: mdss: validate number of cea blocks before reading from edid_bufAshish Garg2017-06-09
| | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Number of cea blocks are read from edid buffer which comes from the user. If the number of cea blocks are more than the supported blocks kernel information leak is possible by reading more data than is present in edid_buf. Change-Id: I03b8456ff1e1a7b15d711f06908bd5c83f83cc02 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
* | | | | | | | | | Merge "msm: mdss: validate the buffer size before allocating memory"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | msm: mdss: validate the buffer size before allocating memoryAshish Garg2017-06-09
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no validation of the "count" parameter, which is controlled by the user and used as a size of allocated memory. If the user provides a value of "0" for "count", then kmalloc would not return NULL, but also there will be a memory block of "zero" size. This can lead to buffer overflows. Also trying to access invalid memory will cause kernel crashes. Ensure to check that the number of bytes to be written is non-zero. If zero, return invalid input. Change-Id: I9613043881a91fd5a5f99337119c4a3d41493b54 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
* | | | | | | | | | Merge "msm: mdss: validate page id before reading from edid buffer"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | msm: mdss: validate page id before reading from edid bufferAshish Garg2017-06-09
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide complete resolution details in a sysfs node "res_info" limited to PAGE_SIZE. Different modules can query for multiple resolution details based on the resolution ids received from EDID of the TV. In case resolution details exceed PAGE_SIZE, reuse res_info to get remaining timing details by provide page details. Check page id is within the max supported resolution ids to avoid reading extra memory than required. Change-Id: I7cdd071ba462080fe5bb302d0da824ed95b50f15 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
* | | | | | | | | | Merge "msm: mdss: size check before writing to edid buffer"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | msm: mdss: size check before writing to edid bufferAshish Garg2017-06-09
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To update custom edid through sysfs node, there was no check on the edid size passed. The user can overwrite the edid buffer. To prevent buffer overflow, ensure that edid size is validated with the edid buffer size before writing to the buffer. Change-Id: I8604ea2d25f3a4985749bd037497d242b0621519 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
* | | | | | | | | | Merge "msm: mdss: handle vsync properly during dynamic resolution switch"Linux Build Service Account2017-06-18
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / |/| | | | | | | | |
| * | | | | | | | | msm: mdss: handle vsync properly during dynamic resolution switchHarsh Sahu2017-06-08
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During resolution switch, the vsync is disabled just before the switch as part of ctrl stop, but it is not enabled back after the switch. This change keeps track of vsync before the switch and handles it appropriately after the switch. Change-Id: I3eed93d7f7635217bac3c19c61f68154cacef56e Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Clean-up payload for unsupported versions"Linux Build Service Account2017-06-14
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | |
| * | | | | | | | msm: mdss: Clean-up payload for unsupported versionsGopikrishnaiah Anandan2017-06-06
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When 32 bit process calls the post processing ioctls compat layer functions will be called. If post processing version is not supported payload needs to be freed. Change adds support for clean-up. Change-Id: Ib3c4d60b858ddd952a3906946458aa2bf2c69076 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
* | | | | | | | Merge "fbdev: msm: Allocate fd with O_CLOEXEC flag"Linux Build Service Account2017-06-10
|\ \ \ \ \ \ \ \
| * | | | | | | | fbdev: msm: Allocate fd with O_CLOEXEC flagKrishna Manikandan2017-06-05
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When fd is requested during get_metadata call, create fd using O_CLOEXEC flag. CRs-Fixed:2030638 Change-Id: I1c874f713a3ebada63ba2c85f021aa78b04af44b Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Buffer overflow while processing gamut table data"Linux Build Service Account2017-06-10
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Buffer overflow while processing gamut table dataBharath Gopal2017-06-07
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified the size of the gamut table data-structure in order to avoid a buffer overflow while copying data from user-space. Change-Id: I8c5fa1caff450a2d25d7859bd159ab4a60045e54 Signed-off-by: Bharath Gopal <gopalb@codeaurora.org>
* | | | | | | | Merge "fb: msm_dba: add post-on-sleep support for adv7533 vreg"Linux Build Service Account2017-06-10
|\ \ \ \ \ \ \ \
| * | | | | | | | fb: msm_dba: add post-on-sleep support for adv7533 vregYunyun Cao2017-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some platforms, after turning on the VREG for ADV7533 bridge chip, need to sleep some period of time before doing any I2C transactions with the bridge chip. Change-Id: I6f7c45f3561f996507613a7a6eb0bcd8922caed5 Signed-off-by: Yunyun Cao <yunyunc@codeaurora.org>
* | | | | | | | | Merge "ARM: dts: msm: update nt35597 panel properties for msm8998"Linux Build Service Account2017-06-10
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | msm: mdss: Read status value from master controllerRashi Bindra2017-06-01
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Read the panel status from master controller when sync wait broadcast is enabled for the panel. Change-Id: I57ddac718738f3a6749d1deddae93b25e7f77261 Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
* | | | | | | | | msm: mdss: Do not attempt to request TE irq again if already requestedRashi Bindra2017-06-08
| |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the TE irq is alredy requested and registred with a GPIO, then setting it to true and not continuing with further requesting of the same. Change-Id: Iacd1677127c2663d88826e58f1b72704b58db939 Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
* | | | | | | | 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
|\ \ \ \ \ \