summaryrefslogtreecommitdiff
path: root/drivers/video (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | | | msm: ba: Fix some potential risksJingtao Chen2017-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid memory leaks and prevent to dereference null pointer Change-Id: I907ea987b0f3d6971116e116841482fa364ef7b8 Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
| * | | | | | | msm: ba: Update printk format specifier to prevent leaksShiju Mathew2017-06-15
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update printk format from %p to %pK in msm_ba driver to hide exposed kernel pointers. CRs-Fixed: 2036994 Change-Id: I8f9290670888a0b351339990f0dc2fa4fcc78b26 Signed-off-by: Shiju Mathew <shijum@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>
* | | | | | | | | | 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: ba: Update ba driver to latest v4l2 framework"Linux Build Service Account2017-06-14
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | msm: ba: Update ba driver to latest v4l2 frameworkJingtao Chen2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch upgrades ba driver to be compatible with the latest v4l2 framework. Change-Id: Id91953f7a4a075533e7e8bedab71e5c20d4da2c1 Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
| * | | | | | | | | msm: ba: Fix race conditions in debug writesRahul Sharma2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use dynamic allocation for debug buffer instead of static. This is to avoid race condition which can cause buffer overflows. Change-Id: I1b4eecb4280843064712ee3b7b52e23f55ab53c3 Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
| * | | | | | | | | msm: ba: Update video input device enumerationShiju Mathew2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove signal status check during enumeration to avoid any unnecessary polling of device status during bootup. The single status check is done when device is open for streaming. CRs-Fixed: 1092315 Change-Id: I2027fe0fab0fb865071001e7400ba7672433d8f5 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
| * | | | | | | | | msm: ba: Fix issue with multiple BA profilesShiju Mathew2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix NULL pointer dereferencing on enabling multiple BA profiles. It was due to improper pointer assignment. CRs-Fixed: 1029211 Change-Id: Ibab903d8aaf4c74d0c35386778a84d9280dbb221 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
| * | | | | | | | | msm: ba: Remove default disable of BA driverShiju Mathew2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable/Disable of bridge abstraction driver will be done from kernel defconfig file. CRs-Fixed: 1021381 Change-Id: Ie674de7c9c4a667a1eaeb6dd907341fef0cc34d1 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
| * | | | | | | | | msm: ba: Add DT support for BA driverShiju Mathew2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move BA platform specific data into DT and minor cleanups. CRs-Fixed: 998927 Change-Id: Ib68a7b16986b92a46a98beab0c35591274c334ba Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
| * | | | | | | | | msm: ba: Merge relevant changes from A familyShiju Mathew2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge relevant bridge abstraction changes from 8064 to MSM8996. CRs-Fixed: 998927 Change-Id: I4baaa5a8b93cade64b0064acdc63b3b4ab7765e7 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
| * | | | | | | | | msm: BA: Save platform driver in device contextDomi Papoi2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Probe function rework to have the drive capability of reading from dts. Change-Id: I5cc05d4e4ffd3d0f5546c1177516a2d0805be481 Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
| * | | | | | | | | msm: BA: Fix race condition with v4l2 event handlerDomi Papoi2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The v4l2 event handler struct should be initialized before added to the dev_ctxt->instances list. The v4l2 event handler struct should be de-initialized after we remove inst from the core->instances list. Change-Id: I1faf6bab4232bbcd2ca567a9a11b0c8faa2f45ce Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
| * | | | | | | | | msm: BA: Fix a race condition in BA event handlingDomi Papoi2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add proper locking in event handling so that invocation of multiple events will not corrupt the event list. Change-Id: I4499b3c0a106cbada54bbc122bb03ad5c30ed2c3 Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
| * | | | | | | | | msm: BA: Avoid null pointer dereferencingDomi Papoi2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add null pointer checking to avoid null pointer dereferencing for ba input. Change-Id: Ic54bbf8748a78c7f33540cab2ec32b753969fa06 Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
| * | | | | | | | | msm: BA: Create Bridge Abstraction (BA)Domi Papoi2017-06-08
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create bridge abstraction driver to provide a framework that can be used to abstract different types of bridge chips under a common API. The framework also allows multiple drivers to control different functional aspects of a bridge chip. The bridge abstraction driver is limited to bridge chips that deal with converting audio/video data from one protocol to a different one. Change-Id: Ib42365fb41afda8029f4f6e9b1ec27549d885659 Signed-off-by: Domi Papoi <dpapoi@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>