summaryrefslogtreecommitdiff
path: root/drivers/gpu (follow)
Commit message (Collapse)AuthorAge
...
| | * | | | | drm/msm/sde: add const alpha support for msmskunkabeykun2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add foreground and background blend layer constant alpha programming sequence for msmskunk. Assign correct function to the mixer HW interface based on HW revision. Change-Id: I5af26fa56d6434adbea438ad31a1759d43b10b6d Signed-off-by: abeykun <abeykun@codeaurora.org>
| | * | | | | drm/msm/sde: add max clock property for sdeAlan Kwong2016-09-30
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add max clock property for sde. This property defines the maximum allowable clock in Hz. Change-Id: I4e8f40593345abb970c08b837c76d79f1f8a0581 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | Merge "drm/msm/sde: enable sde clocks during debugfs register read" into ↵Dhaval Patel2016-09-28
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: enable sde clocks during debugfs register readClarence Ip2016-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDE clocks need to be enabled when attempting to read h/w registers through the debugfs interface. The clocks themselves are reference counted, so it's safe to enable/disable them around the debugfs access. Change-Id: I937b29e327799f78b821d4beb4f93504bea28fdc Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: update pipes on dirty plane properties" into ↵Dhaval Patel2016-09-28
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: update pipes on dirty plane propertiesClarence Ip2016-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normal 'has mode changed' checks are sufficient for determining whether the entire pipe needs to be reprogrammed, but partial updating of the pipe configuration may also be required due to user property updates. This change modifies the mode set logic to also consider incoming property sets that have occurred since the last update to determine what needs to be reconfigured. Change-Id: Ib2d15c3882bd4bdb6bc6b53c7f160e6da847a2ff Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | | Merge "drm/msm: remove msm clock driver header files" into dev/msm-4.4-drm_kmsDhaval Patel2016-09-28
| | |\ \ \ \ \
| | | * | | | | drm/msm: remove msm clock driver header filesDhaval Patel2016-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove msm clock driver header files to avoid dependency between "msm" and "qcom" clock driver. Change-Id: I2bd77086f01d0e87e1a0314c38bcf94abf4905de Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | | Merge "drm/msm/dsi-staging: keep backlight api under LED config" into ↵Dhaval Patel2016-09-28
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | | drm/msm/dsi-staging: keep backlight api under LED configDhaval Patel2016-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep backlight API calls under LED config to avoid compilation issues when it is not defined. Change-Id: I2e0f507ea580838f31b04d7fc14af1d4997e6819 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | | Merge "drm/msm/sde: fix compilation issues in sde driver" into ↵Dhaval Patel2016-09-28
| | |\| | | | | | | | |/ / / / | | |/| | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: fix compilation issues in sde driverDhaval Patel2016-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix compilation issues in sde driver when dependencies are not available. Change-Id: I1603b39b399c636fd7d4dd9e8d2d3264ae4bc3ef Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: update encoder dmesg logging to use sde macros" into ↵Dhaval Patel2016-09-27
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | | drm/msm/sde: update encoder dmesg logging to use sde macrosClarence Ip2016-09-27
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change modifies the video and command mode encoders to use local sde defined macros for debug and error logging rather than standard drm ones. The local sde macros allow the logs to be enabled both from the normal drm_debug and Linux dynamic debug interfaces. Change-Id: I25775dbe30f140f3833b3aa7c735f31bbc987f26 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: use const alpha for wb if pipe alpha not supported" into ↵Dhaval Patel2016-09-27
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: use const alpha for wb if pipe alpha not supportedAlan Kwong2016-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Writeback can source alpha from upper pipe or from constant alpha. When pipe alpha is not supported, use constant alpha to supply alpha value for writeback. Change-Id: I4381aeb35bc1ef4c18e70174880b223a61e89024 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: add mode change request to cdm resource update" into ↵Dhaval Patel2016-09-27
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: add mode change request to cdm resource updateAlan Kwong2016-09-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CDM is used by writeback for luma/chroma output. CDM resource request is detected in atomic check; however, no explicit crtc mode change is currently registered; hence, CDM request is not honoured if there is no other accompanying mode change. Add explicit crtc mode change request to existing CDM request so CDM request is processed during encoder mode set. Change-Id: Ib2518c91d348b0fd00e9ca82cfeaeb1eaa4bf6c3 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | drm/msm/sde: remove unused header dependencyLloyd Atkinson2016-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused header inclusion from the mdp driver, previously included due to an incorrectly referenced enum. Change-Id: Idb5236f179195a79335d5b902e61f3050a6644e4 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: always clear topology name when removing rsvp" into ↵Dhaval Patel2016-09-27
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | | drm/msm/sde: always clear topology name when removing rsvpLloyd Atkinson2016-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix resource manager so that if there is no active reservation it clears out the active topology name property. Change-Id: Ib6831638ceb2950aca84810869dd74480a5e2c5d Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | | drm/msm/sde: remove unused sde functionsClarence Ip2016-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove a number of unused functions to maintain code clarity and readability. Change-Id: Ib1a7bca7dc882d80a819a85ab6c09a5259fe9ffe Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | | | Merge changes I21f7c75a,Ib30ee438 into dev/msm-4.4-drm_kmsDhaval Patel2016-09-26
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: drm/msm/sde: remove unused writeback function stubs drm/msm/sde: remove unused vblank control for writeback
| | | * | | | | drm/msm/sde: remove unused writeback function stubsAlan Kwong2016-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused function stubs from writeback hardware driver. Client can check if certain feature or capabilty is supported by first checking operation function pointer before calling the operation. Change-Id: I21f7c75ab750c76328e77fbb67eda2a8c5d50123 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | | * | | | | drm/msm/sde: remove unused vblank control for writebackAlan Kwong2016-09-23
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Writeback does not support external vblank control. Remove vblank control callback as it is not used. Change-Id: Ib30ee4388e8c7726f887417af773740e29c96f6e Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | drm/msm/sde: cleanup alpha calc and plane stage in crtcDhaval Patel2016-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The foreground and background alpha calculation is overlapping between crtc and lm interface. It can be handled cleanly at single stage and update on layer mixer. The plane staging is also complex in same API because same plane is staged multiple times with multiple mixers. Such invalid configurations are leading to underruns. This patch fixes the issues, reduces the complexity of the code and removes extra register updates on each composition cycle. Change-Id: I8ea1367be06963253011ebf7e00a7555a35c7d7c Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | drm/msm/sde: remove unused encoder functionLloyd Atkinson2016-09-22
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the sde_encoder file by removing sde_encoder_get_intf_mode which is no longer necessary. Change-Id: I9cb78a67527f273fe75fa82fb20d081cddfd46b8 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | drm/msm/sde: reorganize top level interrupt handling codeAlan Kwong2016-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Re-organize interrupt handling code to match device hierarchy such that the top level handler maps to MDSS level, and core level handler maps to MDP level. They are moved to separate files corresponding to top and core respectively. This improves maintainability of the interrupt handling abstraction. Change-Id: Ib76cfa0f157722d9c1926bf21fc789c2be19b495 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | Merge "drm/msm/sde: add OT support for source pipe and writeback" into ↵Dhaval Patel2016-09-20
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: add OT support for source pipe and writebackAlan Kwong2016-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OT limit controls the number of outstanding requests on bus client interface. This patch adds OT limit control for source pipe and writeback bus clients. Change-Id: I66c0ede9da3b292538fec83ba62ccd453ee1ec37 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | Merge "drm/msm/sde: add danger/safe/QoS support for source pipe" into ↵Dhaval Patel2016-09-20
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm/sde: add danger/safe/QoS support for source pipeAlan Kwong2016-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QoS control enables source pipe to map request priority based on source pipe file level using lookup table. Danger/safe control enables source pipe to provide additional signal based on buffer fill information for fabric prioritization over other bus clients. Change-Id: I95f1da4f5f79eded62c7b39aba23a7ce8363987f Signed-off-by: Alan Kwong <akwong@codeaurora.org>
| | * | | | | drm/msm/sde: improve debug log for blend setupClarence Ip2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change updates the debug logs for the CRTC blend setup to contain more useful information that is consistent with normal drm semantics. Change-Id: I13e13805e31c0eba224a35b3219416c9cd897ca5 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | | DOWNSTREAM: drm/msm/sde: optionally delay output fence signalClarence Ip2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android's HWC1 requires fences returned after a commit to be signalled only after the next commit has been received. This change provides a new 'output_fence_offset' property on the CRTC to allow user space clients to optionally delay the fence signalling by an additional commit. Change-Id: I9938d9b746766ccdfec7568ba80eb6a7bf37b778 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | | drm/msm/sde: determine output fence timing on createClarence Ip2016-09-12
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow for output fence signal time to be determined during each fence create rather than at initialization. This provides for more flexibility to support use cases that require different signalling times. Change-Id: I2a9467c225e5632a01cd556553368d0990a94327 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | drm/sde: use power handle api to vote for core clockDhaval Patel2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update SDE driver to use the power handle API for voting the core clock and regulator. This change also cleans up bunch of error paths in sde_kms init. Change-Id: I0acdd2308f7e19053d5ec0a8ae148ee6e4bc2433 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | drm/msm: add power handle driver for msmDhaval Patel2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The power handle driver parses the regulator and clocks present on certain device node and it votes/enables the clock when client request for it. Multiple clients can request for enable/disable at the same time. It handles the reference counting logic to avoid removal vote from other client. It also supports the register bus driver voting. Data bus driver support is still missing. Change-Id: I030f302dce82508e89006cc034d825a071fe9967 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | drm/msm/sde: add helper macro for performing ktime comparisonsClarence Ip2016-09-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux ktime events can not be directly compared if the timer has overflowed between them. This change adds a helper macro to first take the difference between the events and then compare the result against zero in an attempt to handle timer overflow situations. Change-Id: Ic32afc35fbabb757714b5a583cc384389176b239 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| | * | | | drm/msm/sde: assign ctls based on capability requirementsLloyd Atkinson2016-09-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to assign control path blocks based on matching use case requirements to hardware block capabilities. Prefer to assign lower capability blocks first so we are still able to serve split display clients when they arrive. Change-Id: I415da3c1aed8d7fa6a919eba1e730aa7c8e3751a Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | drm/msm/sde: clean up crtc ctl trackingLloyd Atkinson2016-09-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove duplicate ctl flush mask cache in the CRTC since it no longer needs to maintain a separate cache. Clean up assignment of ctl to mixer assignments to reflect that two mixers may be controlled by the same ctl. Change-Id: Id6db2d69e60a5728e026307685e60a0c52220927 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | drm/msm/sde: improve resource manager hw block lookup timeLloyd Atkinson2016-09-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move hardware blocks tracking in the resource manager to use one list per hardware block type to reduce list traversal cost when looking for a specific hardware block type. Change-Id: I5b574c7ecd80054a26937a95531a28c097d52c25 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | Merge "drm/msm: internal property updates should update cached value" into ↵Dhaval Patel2016-09-06
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm: internal property updates should update cached valueLloyd Atkinson2016-09-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to update the driver-side cached value of properties when they are updated via the internal set_property helpers, especially for driver-generated read-only immutable properties. Change-Id: If9a2c04d867eea41c1fa3ee2eb02964bc71afc06 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| | * | | | | drm/msm/sde: fix plane stage setup in sde crtcDhaval Patel2016-09-02
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDE crtc handles the plane stage based on mixer loop. That adds an issue when two planes are staged on same z_order. It overwrites the second plane configuration with first one. That leads to underrun. This cleans up the issues in and around plane stage setup to avoid overwrite or unnecessary locking. It fixes the issue for source split cases. Change-Id: I2e784ab4fbb06b8156bef3a8d53a5ae8d69b2fd3 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | Merge "drm/sde: remove warn on from sde encoder" into dev/msm-4.4-drm_kmsDhaval Patel2016-08-31
| | |\ \ \ \
| | | * | | | drm/sde: remove warn on from sde encoderDhaval Patel2016-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sde encoder wait for commit done is called from kms driver. It can be called during first commit without enabling the encoder to check if any commits are pending. That should not be treated as warning. Change-Id: I6072b3ea1bdea6b93c1ddc04b8d38dc9fa790de3 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | Merge "drm/sde: allow base layer plane stagging" into dev/msm-4.4-drm_kmsDhaval Patel2016-08-31
| | |\| | | |
| | | * | | | drm/sde: allow base layer plane staggingDhaval Patel2016-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current sde driver returns warning when client tries to setup a plane/pipe at base layer. That's incorrect behavior. A full size base layer is supported. This patch remove those invalid checks. Change-Id: Id2b420c20d47aa5abbfc5558c53a16d8a011e2dc Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| | * | | | | Merge "drm/msm: update plane, crtc and connector caps blob prop" into ↵Dhaval Patel2016-08-31
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | | * | | | drm/msm: update plane, crtc and connector caps blob propDhaval Patel2016-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update plane, crtc and connector capability blob property with max linewidth, scaling and decimation support. Change-Id: Ic986a228cb0c9fa23f59f340c9a049a17ad2e372 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>