summaryrefslogtreecommitdiff
path: root/drivers/gpu (follow)
Commit message (Collapse)AuthorAge
...
| | * | | | | drm/msm/sde: add qseedv3.x support for sdeabeykun2016-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qseedv3.x block supports filtering, scaling and sharpening. Change adds support to program scaler, detail enhancer and LUT coefficients. Change-Id: Idfec866dd9f7acb73c79780e2c3b6b6ce73d42c8 Signed-off-by: abeykun <abeykun@codeaurora.org>
| | * | | | | drm/msm/sde: add 10-bit formats supportabeykun2016-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 10 bit dx format support for MDSS hardware. Change-Id: I15c6ca1539e8dbbb57ad9dccfefb49efcc8567d0 Signed-off-by: abeykun <abeykun@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: handle pingpong blocks from virtual encoder" into ↵Dhaval Patel2016-11-10
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | | drm/msm/sde: handle pingpong blocks from virtual encoderJeykumar Sankaran2016-11-10
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pingpong blocks are needed for both video and command mode panels for supporting DSC compression. DSC programming requires modifying registers in pingpong block. Pingpong blocks need not necessarily be mapped 1-to-1 with interfaces for DSC merge and 3D Mux topologies. This change stores and maintains the HW pingpong blocks from virtual encoder. Change-Id: I2e31c6a9d31e0142eb83df956aa70b425a1e6d7e Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
| | * / / / / drm/msm/sde: add support for BGRX and XBGR formats in planeNarendra Muppalla2016-11-09
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for BGRX and XBGR formats in sde_format_extended planes. This patch will also address atomic commit failures seen on primary testing. Change-Id: I9134a89c0d47817a219d2f2f18f95b9c16d2c58c Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
| | * | | | drm/msm/sde: add multi-client and ref counting for core irqAlan Kwong2016-11-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add multiple client support for core irq interface. Multiple clients can register/unregister callbacks for each core interrupt. Callbacks for each interrupt will be invoked one by one in interrupt handler. Core irq will maintain how many times each interrupt has enabled, and keep it enabled until last disable call is invoked. Change-Id: I8fe45305fd1bcc8bbdebf3e9ca931842f2c62daf Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | drm/msm/sde: cache connector list in sde crtcClarence Ip2016-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Determine which connectors are associated with the crtc during the beginning of the commit request and reuse the list for the rest of the commit. This is needed because the drm atomic states only record connectors/objects that have been updated in the current commit, rather than all associated plane/connector/etc. objects. Change-Id: I51f2379fc574033b4f87e01eccbb3ee8aef31bb3 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | drm/msm/sde: remove display managerClarence Ip2016-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert dsi and wb into actual drivers, and don't bind them from within the display manager any more. With this change, the display manager is no longer necessary, and may be safely removed. Change-Id: Ifac790fe31120d72cf78000a1476e22d000db4ae Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | drm/msm/sde: fix video encoder access in phy encoderDhaval Patel2016-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Video encoder structure member should be accessed after physical encoder null check. This patch fixes the current invalid accesses. Change-Id: Icbd2e5d188a5a3ad459d13a3381325d920cac998 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | drm/msm/sde: add debugfs node for vsync and underrun statusDhaval Patel2016-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a debugfs node under encoder to update the vsync and underrun status of all physical encoders. Change-Id: I56198e7450709f393c878d44b6c467a2d5f8dd65 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | Merge "drm/msm/sde: update vblank and underrun isr handling" into ↵Dhaval Patel2016-11-01
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: update vblank and underrun isr handlingDhaval Patel2016-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current sde driver enables the underrun interrupt for all interfaces during bootup. That's not a desired behavior. It should be handled through each interface when it is enabled/disabled. This patch updates the irq APIs on each interface to handle generic irq request and uses them for vblank, underrun, etc. interrupts. Change-Id: I890110eef975555a771a0690c5f762b0a3f18737 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | drm/msm/sde: fix color component orderDhaval Patel2016-10-31
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDE hardware handles the color component without endianness. So, RGBA component keeps the "A" component on the lowest memory address that is LSB + lower address = Little endian format. The same applies to UBWC formats also. This patch fixes the color component order based on above requirement. Change-Id: I8cc03acef97f9777244bb3cad68e9992e22c3dd4 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | Merge "drm/msm/dsi-staging: fix issues related to deferral" into ↵Dhaval Patel2016-10-31
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/dsi-staging: fix issues related to deferralLloyd Atkinson2016-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix two issues in dsi_display interfering with probe deferral: clear clock pointer when they fail to initialize, and remove debug_fs entries recursively. Change-Id: Ide542cef7f82b6f5caa52ad4c3da6662b8ae58fc Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm/sde: remove static allocation of mdp_top hw blockLloyd Atkinson2016-10-31
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove singleton behavior from mdp_top hardware block since it is no longer necessary. The resource manager now manages the lifecycle of the mdp_top. This fixes an issue where the static mdp_top would point to freed memory. Change-Id: Ie860fd65ac2efa28ed0f3d9014bb45b0cc6aed5e Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | Merge "drm/msm: initialize local varibles in sde power module" into ↵Dhaval Patel2016-10-28
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm: initialize local varibles in sde power moduleKalyan Thota2016-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize local variables in sde power module, so that if dt entries are not available they will have default value. Change-Id: If0fddd177816f335c665f3d7b178860e1f0a5089 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
| | * | | | | drm/msm/sde: dual pipe use case supportLloyd Atkinson2016-10-27
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for cases with two pipes, merged together via 3D mux into one output display. Change-Id: Ic1e16af72e8cc45a8fd9ad706b37f5b69d30f0ef Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | Merge "drm/msm/sde: add clock control parsing to hardware catalog" into ↵Dhaval Patel2016-10-25
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: add clock control parsing to hardware catalogAlan Kwong2016-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add parsing logic to setup plane and writeback control clock register and bit mask. Clock control registers are used to change vbif OT settings. Change-Id: Ie3baee8c25c2899f14c3d0e87e02dc57d73ce582 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: correct read out of bit offset array" into ↵Dhaval Patel2016-10-25
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: correct read out of bit offset arrayAlan Kwong2016-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parser for bit offset is writing bit and offset to the wrong property location. Correct the parser to write to the first 2 locations of the property value array. Change-Id: Ic087c4ce55a2b2e9276db0cc953bc226939f3249 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: add plane QoS parsing to hardware catalog" into ↵Dhaval Patel2016-10-25
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: add plane QoS parsing to hardware catalogAlan Kwong2016-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add plane QoS parser to retrieve and parse LUTs for danger, safe and creq QoS settings. Change-Id: I42dd045c46966a66f43fd9517a16270c83f89aa1 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: add vbif parsing to hardware catalog" into ↵Dhaval Patel2016-10-25
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: add vbif parsing to hardware catalogAlan Kwong2016-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add vbif parsing to hardware catalog. Default and dynamic OT limits are defined for each vbif block. Change-Id: I12336c2f390b5acd2aeec691e1176d814b1cb768 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: add writeback id parsing to hardware catalog" into ↵Dhaval Patel2016-10-25
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: add writeback id parsing to hardware catalogAlan Kwong2016-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Writeback identifier is used to mapped clock control register for each writeback device. Add writeback identifier parsing to hardware catalog. Change-Id: I666072f657dfeb30c6818f3dd25729e891c579ad Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: update mixer op mode config bit fields correctly" into ↵Dhaval Patel2016-10-25
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | | drm/msm/sde: update mixer op mode config bit fields correctlyClarence Ip2016-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid corrupting other bit fields in mixer op mode during updates. Change-Id: I46521908dfceef833a4b7dfff60c63fb8067017a Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | | | drm/msm/sde: update crtc status debugfs nodeDhaval Patel2016-10-24
| | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update crtc status debugfs node with current plane information and framebuffer information. Change-Id: I13c52b4cba363f95225a5e28c67b5c597a92a0d7 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | drm/msm/sde: add sde error prefix for all errorsDhaval Patel2016-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add sde error prefix for all sde driver errors. Change-Id: I59d8b37338cb8641ebdea2c50b31b5e63946b49c Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | drm/msm: add capability property for crtcDhaval Patel2016-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add capability property for crtc to update all system wide capabilities like hardware rev, ubwc support, source split, qseed rev support, etc. Change-Id: Iecc6f4ec7376f7f5de884042aa7a3b0a5387d6d6 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: update ubwc and src split properties for sde" into ↵Dhaval Patel2016-10-21
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | | drm/msm/sde: update ubwc and src split properties for sdeDhaval Patel2016-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Source split and ubwc properties are generic for sde hardware. It should be handled by top module and should be set for each crtc object. Change-Id: Iee45cb83526762e423d5c67abaeead8619ff2059 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | | drm/msm/sde: correct to use sync vblank request for commitAlan Kwong2016-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current sde_wait_for_commit_done is calling asynchronous drm_crtc_vblank_get/put to enable/disable vblank interrupt. However, drm_crtc_vblank_get/put submit the vblank request to a workqueue for later execution. As a result, vblank irq is not get/put properly prior/after the commit operation in sde_wait_for_commit_done. Replace async drm_crtc_vblank_get/put with sync sde_crtc_vblank, and use reference count in encoder to enable/disable interrupts. Change-Id: Iccc83983d56b75717eda9c401a54dfe77e945fed Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | | drm/msm: execute pending vblank disable upon last closeAlan Kwong2016-10-19
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vblank disable is dispatched by delay timer upon file release. If all vblank disable are not dispatched by last close, device may have unbalanced vblank requests upon next device open. As a result, before closing down all mode objects in last close, trigger vblank delay timer and wait until all requests are executed and cleared from workqueue. Change-Id: I56d39e617fc88d40b22740c0178e339c32305549 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | drm/msm/sde: update crtc to use sde debug macrosLloyd Atkinson2016-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to move the sde crtc to use the local sde specific debug and error logging macros. The local sde macros allow the logs to be enabled both from the normal drm_debug and Linux dynamic debug interfaces. Also move the function naming to be consistent. Change-Id: Ib171ebab3959d6ac522cd6885ac8a55ba4f35e0e Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm/sde: remove unused functions in sde crtcLloyd Atkinson2016-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the sde crtc by unregistering function stubs from unsupported or unused API callbacks. Change-Id: I52de3b3ea501a6995235a3d8b6e4eb841e4b1f7b Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm/sde: move sde_crtc declarations into sde_crtc headerLloyd Atkinson2016-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the sde_kms header by moving the crtc related function declarations into the crtc specific header file. Also clean up some of the unused macros in the sde crtc files. Change-Id: If377e6acb13c8253781c085100a695b6e86e6329 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm/sde: move sde_crtc away from legacy drm vblank apisLloyd Atkinson2016-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix up the SDE CRTC to use the DRM framework's updated vblank related APIs that do not require sub-driver CRTCs to track their own DRM CRTC IDs. Change-Id: Idaa208e6c895850e89a8f8189f9169bd1ca67da8 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm: add error logging in msm_atomicLloyd Atkinson2016-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to add error logging in failure paths within msm atomic commit callflows. Also update style to improve readability. Change-Id: Ife7562122d1e6f66415cbf76b59ca5392eca69ab Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm/sde: move vbif functions to their own fileLloyd Atkinson2016-10-17
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move vbif related functionality out of the sde_kms file and into its own file to keep the main kms file clean. Change-Id: Iff067b82813fc29b3ba48d029543d57bd88e3e1b Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | drm/msm/sde: additional event logging for fencesClarence Ip2016-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add event logs for plane input fences to facilitate debugging. Change-Id: I47d4c98ccd14847b3aaf675414e5809a424b6a9d Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | drm/msm/sde: assign relative mixer stages based on zposClarence Ip2016-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assign mixer stages based on relative zpos ordering rather than using the zpos property value directly. This avoids problems caused by the zpos property value being greater than the available number of stages. Change-Id: I9f5a5a12ba5be49fbe1fbee78ddc7fadfeaedc9d Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | Merge "drm/msm/sde: fixup header markings" into dev/msm-4.4-drm_kmsDhaval Patel2016-10-14
| | |\ \ \ \
| | | * | | | drm/msm/sde: fixup header markingsLloyd Atkinson2016-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix header guard markings. Change-Id: I817d5b1f21b0a7a1b0bcdff0ce4848cea64c8ff7 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm/sde: remove redundant vblank request and notificationAlan Kwong2016-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vblank is requested twice in sde, once in sde_wait_for_commit_done and another one in request_pending for each commit cycle. Only one is required; hence, remove request_pending and associated logics. Change-Id: I1ca69921abd5f7ab74b8f8900aee52e22efbe350 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm: fix power handle APIs when clk are not present" into ↵Dhaval Patel2016-10-14
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | dev/msm-4.4-drm_kms