summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm (follow)
Commit message (Collapse)AuthorAge
...
| * | | | drm/msm/sde: allow mmus to be optional during kms initLloyd Atkinson2017-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix to avoid failing overall drm sde driver initialization in case one of the mmus expected is not defined by DTSI. Particular MMU support varies by platform and can be optional. Change-Id: I07162d1d064c9cc025ec494e83e1dfa7f14f65c1 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | drm/msm/sde: check for null catalog in sde hw destroyLloyd Atkinson2017-01-20
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix sde hw deconstruction which can be called twice back to back if hw initialization itself fails. In this case the catalog pointer will already be null, so we must check for it. Change-Id: Idc05efd7dd8c2a27f2c8128654e4c0b06697f39e Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | drm/msm/sde: parse csc type dtsi entry to select valid cscDhaval Patel2017-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msm8998 supports 10bit csc while msm8996 supports csc only. This patch adds the dtsi entry to select the correct csc type while parsing hardware catalog to configure the valid csc hardware block. Change-Id: I376f1e485a5de4a95d03e395e06d10b043036cb0 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| * | | drm/msm: fix copyright marking in "msm" drm driverDhaval Patel2017-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msm driver is updated signficantly by CAF authors but it does not carry the CAF license. This patch update it accordingly. At the same time; kms, smmu, plane, crtc, encoder code was written by referring the mdp5 driver but it did not carry the license from mdp5 driver. The patch fixes the issue. Change-Id: I4670d2220d6df46213c7220a2b46de32e3ec15a5 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| * | | drm/msm: remove smmu coherent hardware table walk attribDhaval Patel2017-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SMMU coherent hardware table walk attribute is not supported on kernel. This change removes this obsolete call from drm smmu driver. Change-Id: Ie0a79b6abad940043d8fdf453d31a711fc206770 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| * | | drm/msm/sde: add DMA2 and DMA3 pipe staging supportDhaval Patel2017-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add DMA2 and DMA3 source pipe staging support on layer mixer. Change-Id: I9b653261bf933312202e645d859179e0d84fc704 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| * | | drm/msm/sde: add event for underrunsLloyd Atkinson2017-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to add an event log item for underruns for debugging and testing purposes. Change-Id: I711b2560a61421677f36912545fef0ae9d370e66 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | drm/msm/sde: fix check for frame event overflowLloyd Atkinson2017-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix check to detect an empty free event list needed when there are too many in-flight frame events in the sde_crtc. Change-Id: I12c9bf7d449d6582584505a7887b6bdf82f2f0d5 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | drm/msm/sde: add dynamic clock and bandwidth commit supportAlan Kwong2016-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current crtc supports static clock and bandwidth defined in device tree. Add support for dynamic clock and bandwidth control using new atomic crtc properties. User mode can adjust core clock rate, instantaneous and arbitrated bandwidth per crtc commit. Change-Id: I753a141bbc023d89f1532943f48252875883d684 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| * | | drm/msm/sde: add bus bandwidth control for crtcAlan Kwong2016-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add bus bandwidth control (on/off) for crtc around atomic commit and frame done event. To support video mode interface, also add bandwidth control around encoder enable/disable. Change-Id: I90ef372aad4a20040602a468393e8a5cd8f08201 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| * | | drm/msm/sde: add frame done callback event to crtcAlan Kwong2016-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Frame done is signaled when the current commit request completes after wb/pp/cmd done or vsync are received. Frame done callback is used by crtc to control clock and bandwidth setting dynamically. Change-Id: I48d633bfc1174dec5084487da17faa91ec5fa52d Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| * | | drm/msm/sde: bypass crtc atomic begin/flush if disabledAlan Kwong2016-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current crtc exeuctes atomic begin and flush even if crtc is not enabled. This causes unnecessary updates to crtc. Hence, modify crtc to bypass atomic begin and flush if not enabled. Change-Id: I1de9c0965e552126ed7be59f7ee5400e3605a17f Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| * | | drm/msm/sde: add debugfs entry for vbifAlan Kwong2016-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add debugfs entry for vbif, allowing get/set of default and dynamic OT settings. Change-Id: Ia0237aa0befc0c6dee879bb2fca771ee39958321 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| * | | drm/msm/sde: add debugfs entry for danger and safe statusAlan Kwong2016-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add debugfs entry for current danger and safe status of each pipe and current overall status for debugging purposes. Change-Id: I3e784d0218df40c184a431409c864a3208a90b45 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| * | | drm/msm/sde: enable ping pong split supportClarence Ip2016-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for using a single layer mixer to drive two video or command mode interfaces. This configuration frees up one of the layer mixer paths for other use cases/displays. Change-Id: I3a0ca07e37f121bf56ea8984c0cca25af7bc647e Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | Merge "drm/msm: implement smmu detach and guard freeing of client dev" into ↵Jeykumar Sankaran2016-12-09
| |\ \ \ | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | drm/msm: implement smmu detach and guard freeing of client devLloyd Atkinson2016-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a basic implementation of msm_smmu_detach. Check that smmu client_dev exists before doing platform_device_unregister. Change-Id: Ied1481003d878af452d3b00b950b234c6b7dd698 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | Merge "drm/msm/sde: update pixel extension uapi" into dev/msm-4.4-drm_kmsJeykumar Sankaran2016-12-05
| |\ \ \ \
| | * | | | drm/msm/sde: update pixel extension uapiabeykun2016-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch changes pixel extension uapi to match FB driver and exposes QSEED3 filter configuration defines. Change-Id: Id5dba041df77d1c663742fcda74f420ca3d228f9 Signed-off-by: abeykun <abeykun@codeaurora.org>
| * | | | | drm/msm/sde: remove catalog parsing limitsClarence Ip2016-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the previous limit of MAX_BLOCKS from the number of recognized key entries, and cleans up the catalog parsing logic to remove a number of arrays from the call stack. Change-Id: I926367296960daaf82978b0c4ce53f67dcb36ed2 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | | drm/msm/sde: enable master physical encoder lastClarence Ip2016-12-01
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the way in which the virtual encoder requests the physical encoder enables so that the master physical encoder is always enabled last. This is done so that all of the slaves are fully prepared when the master is enabled, and also allows the master to update any necessary configuration during its enable callback. Change-Id: Iff0d9cd08f8589889b50974fbc9819d96a15ab63 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | drm/msm/sde: reset ctl mixer config at end of use caseLloyd Atkinson2016-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to take the control path out of any source split or other configuration at the end of a use case to prepare for the next client. Change-Id: I9a2fb57dcafc576a23a13da1906a44e9992aeb74 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | drm/msm: Support virtualization of color processing propertiesGopikrishnaiah Anandan2016-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During device probe virtual crtcs are created with no hardware attached. Color processing(cp) properties can be attached to the virtual crtc by looking at the hardware catalog. If user-space client sets property cp driver will check if hardware has been allocated for crtc. If there is no hardware allocated it will return error for set property Change-Id: I9662ebb51a4a9f79b6a1e8769f01391eaf06e313 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
| * | | | Merge "drm/msm/sde: reset kickoff count atomically before irq enable" into ↵Dhaval Patel2016-11-30
| |\ \ \ \ | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | | drm/msm/sde: reset kickoff count atomically before irq enableLloyd Atkinson2016-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework physical encoder kickoff counting logic to address issues where an interrupt could be missed, or completion could get out of sync due to a race condition between kickoff count and irq enable. It also generalizes the kickoff count across the video and command interfaces. Change-Id: Id88f5b2859f74ee1aced8fbd7552e9023155d01c Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | | drm/msm/sde: Move DSPP/SSPP color process hw programming to common locationBenet Clark2016-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The color processing blocks for SSPP and DSPP share the same register programming sequences. This change moves the current DSPP and SSPP functionality to a common location and uses the helper function for common code. Change-Id: I0f41453a977ba2d3b4ce12cc622706619c48280c Signed-off-by: Benet Clark <benetc@codeaurora.org>
| * | | | | drm/msm/sde: Add support for Memory Color in planeBenet Clark2016-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for skin, sky, and foliage memory color hardware in planes which have color processing hardwares. Change-Id: I9ec72f44f36939cae90215bc668f3186d140e8b8 Signed-off-by: Benet Clark <benetc@codeaurora.org>
| * | | | | drm/msm/sde: Add PA global adjustment properties to planeBenet Clark2016-11-30
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for hue, saturation, intensity, and contrast adjustment in planes that have color processing support. Change-Id: I4c794deb7a5a1c0cc30cc0d64fbffd967eb1d399 Signed-off-by: Benet Clark <benetc@codeaurora.org>
| * | | | drm/msm/sde: base scaler phase on decimated dimensionsLloyd Atkinson2016-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the pipe scaler phase calculations to use the width and height after decimation is taken into account. This fixes issues where decimation is required to scale past what is possible with scaler alone. Change-Id: I813fae32625ae3e85489ad96540599efcf5a1a29 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | Merge "drm/msm/sde: check for missed irqs in command encoder" into ↵Dhaval Patel2016-11-29
| |\| | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | drm/msm/sde: check for missed irqs in command encoderLloyd Atkinson2016-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify the way that the waiting for previous kickoffs is handled for the command encoder case. Instead of doing waiting in the virtual encoder, do the waiting in the command encoder directly. That way we can check whether we have missed the IRQ. Also allows waiting for idle before disabling the encoder. Change-Id: I6cdb9c961a0ffd8e9ea2aaf1ad9686757edd7142 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | Merge "drm/msm/sde: move sde hw init to hw_init callback" into ↵Dhaval Patel2016-11-29
| |\ \ \ \ | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | | drm/msm/sde: move sde hw init to hw_init callbackClarence Ip2016-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Callbacks from the upper layer expect hardware initialization logic to reside within the hw_init callback. Consolidate all hw initialization to the hw_init callback and update the deinit and destroy callbacks to match it. Change-Id: I2ab32edae0e8586ddb4701b3d8c5cfde9e611cad Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | | Merge "drm/msm: support probe deferral in msm_drv" into dev/msm-4.4-drm_kmsDhaval Patel2016-11-29
| |\| | | |
| | * | | | drm/msm: support probe deferral in msm_drvLloyd Atkinson2016-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make fixes to support probe deferral in msm_drv, display manager, and sde_kms. Move initialization logic out of msm_drv probe and into load call so it is paired with unload. Change-Id: I9330d61de8f6188cb0e9769d569d5cff841cb159 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | | Merge "drm/msm/sde: fix iounmap usage and init callflow" into ↵Dhaval Patel2016-11-29
| |\| | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | | drm/msm/sde: fix iounmap usage and init callflowLloyd Atkinson2016-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix iounmap usage to properly use devm_iounmap. Fix clearing of pointers in failure callflows of sde_kms init. Change-Id: Ib42134ee972c578070ac513c3e4da37faec7d0cd Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | | Merge "drm/msm/sde: fixup sde_kms shutdown sequence and naming" into ↵Dhaval Patel2016-11-29
| |\| | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | | drm/msm/sde: fixup sde_kms shutdown sequence and namingLloyd Atkinson2016-11-24
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve sde kms error detection and handling during initialization. Make naming of functions consistent within sde_kms file. Change-Id: Ia8946752e7d89d811a46cd4725b2e43e02b9fd39 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | Merge "drm/msm/sde: fix cmd mode vblank irq control" into dev/msm-4.4-drm_kmsDhaval Patel2016-11-27
| |\| | |
| | * | | drm/msm/sde: fix cmd mode vblank irq controlLloyd Atkinson2016-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix previous merge conflict that disabled the pingpong done irq on vblank off instead of the pingpong read pointer as intended. Change-Id: I707437b54f2878d0da7b0d3b5618fdafa0ff38d5 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | | drm/msm/sde: apply correct zpos range for sde clientsClarence Ip2016-11-23
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Maximum value of zpos should be maxblendstages-1 and not max blend stages. Change-Id: I0d991dea29c77cff672f5fd5564e750cafd18e60 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | drm/msm/sde: add debug dump and panic facilityLloyd Atkinson2016-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add facility to trigger a dump of logs, and optionally trigger a panic. To be used on detection of unrecoverable error detected from within the SDE driver. Change-Id: If1b48b1dcba21d9747cf85a5de027d694ae4a645 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | drm/msm/sde: match xlog features in evtlogLloyd Atkinson2016-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade event log facility with xlog feature set which supports variable arguments and other features required. evtlog now registers debugfs at /sys/kernel/debug/dri/0/evtlog. It can be enabled by echo 1 into the enable node, and dumped using the dump node. Move evtlog support into sde layer since only sde uses it. Change-Id: I51f8577a0e626ab53601e07a16cefe8da90125e1 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| * | | Merge "drm/msm/sde: Add device tree subnode parsing capability" into ↵Dhaval Patel2016-11-15
| |\ \ \ | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | drm/msm/sde: Add device tree subnode parsing capabilityBenet Clark2016-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the capability for parsing a device tree subnode of the SDE. For example, the DSPP's will be enumerated in the SDE top-level DTSI node. The hardware blocks inside the DSPP will be enumerated in a subnode in the DTSI. Change-Id: If0cf37fac2388ab385b0bf416f40436e12d9395b Signed-off-by: Benet Clark <benetc@codeaurora.org>
| * | | | drm/msm/sde: add debugfs support for misr dataJayant Shekhar2016-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a debugfs node to enable the misr crc generation in batch mode. Once this is enabled, driver will collect the crc numbers during each of the interfaces interrupt. To enable/disable the crc generation, respectively: echo 1 16 > /d/dri0/encoder18/misr_data echo 0 16 > /d/dri0/encoder18/misr_data Inputs here represents enable and number of frame in batch. Maximum batch size supported is 16. To collect the crc data generated: cat /d/dri0/encoder18/misr_data Change-Id: I0a431b1ceff0425bec10d8739ad07a7b706b5f57 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
| * | | | Merge "drm/msm/sde: Add backlight class support for sde drm driver" into ↵Dhaval Patel2016-11-14
| |\ \ \ \ | | |/ / / | |/| | | | | | | | dev/msm-4.4-drm_kms
| | * | | drm/msm/sde: Add backlight class support for sde drm driverVishnuvardhan Prodduturi2016-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add backlight class support for sde drm driver which provides sysfs interface to userspace to control display brightness. Change-Id: I4f777618e8f2ff61e72beddb7a5bd1fa6e9dd5df Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
| * | | | drm/msm: create separate commit thread for each displaySandeep Panda2016-11-14
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change creates separate threads for commit on each display, so that one display commit is not blocked on other display's commit. Hence improving performance in multi display use cases. Change-Id: Ibd0dae1da53ec3a72de8b96c3c03ce51830cb4f9 Signed-off-by: Sandeep Panda <spanda@codeaurora.org>