summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm (follow)
Commit message (Collapse)AuthorAge
...
| | * | | | drm/msm: Expose Assertive display capabilityGopikrishnaiah Anandan2016-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During probe the assertive display capability is read by the post processing module from device tree/catalog. If chipset supports the feature, an immutable property is created and exposed to user. Change-Id: I7b39537b49a6efe346bdf5a0d0697c5875c8d2f7 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
| * | | | | Merge "drm/msm: Suspend/Resume support for color processing features" into ↵Dhaval Patel2016-10-04
| |\| | | | | | | | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | | drm/msm: Suspend/Resume support for color processing featuresGopikrishnaiah Anandan2016-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Color processing features that are enabled by user-space clients need to be saved when crtc goes to suspend. Once crtc resumes, the following commit cycle will restore the features. Change-Id: I2f169a744a5a19fe6456ff4832208a0cbe78be95 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
| * | | | | Merge "drm/msm: Add support for PCC in Crtc" into dev/msm-4.4-drm_kmsDhaval Patel2016-10-04
| |\| | | |
| | * | | | drm/msm: Add support for PCC in CrtcGopikrishnaiah Anandan2016-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CRTC contains the dspp block which contains color processing modules. Change adds the pcc support to the CRTC. Change-Id: Ib4091d43d819ab4f20f16892277ccd1d21285c61 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
| * | | | | Merge "drm/msm/sde: update catalog for post processing" into dev/msm-4.4-drm_kmsDhaval Patel2016-10-04
| |\| | | |
| | * | | | drm/msm/sde: update catalog for post processingGopikrishnaiah Anandan2016-10-04
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update catalog for post processing features. Change-Id: I6b43ee213e504780f8e6bacee0ca7e370a381772 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
| * / / / drm/msm/sde: don't duplicate input fence pointer with stateClarence Ip2016-10-03
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid duplicating the input fence structure within the plane driver's duplicate state callback. The user context is not always available at this point and the pointer can't be safely copied without taking an extra reference to it. Change-Id: I0aeb4f83b871e4c9add95113ffc80f10b56f51a6 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | Merge "drm/msm: add support for custom event notification" into ↵Dhaval Patel2016-10-03
| |\ \ \ | | | | | | | | | | | | | | | dev/msm-4.4-drm_kms
| | * | | drm/msm: add support for custom event notificationGopikrishnaiah Anandan2016-09-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MDP hardware supports custom events which needs to be reported by driver to user-space clients who request for notification. DRM framework provides poll/read based interface to report the events to the user-space clients. Change adds support to report msm driver events to user-space clients. Change-Id: I4ce75488ad1d1436cafb3451ebc7808961c6cab5 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
| * | | | drm/msm/sde: fix color component order for compressed formatsabeykun2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qcom compressed formats are defining reverse color component order compared to base drm formats. Patch applies correct color component order for compressed formats. Change-Id: I5faa6ac2745100d019f1d3105481f3c908ce8aae Signed-off-by: abeykun <abeykun@codeaurora.org>
| * | | | drm/msm/sde: add writeback ROI support for msmskunkabeykun2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For HW directly supporting writeback ROI x,y offsets bypass writeback planes offset recalculation. Change-Id: I8b38b6026482a4f72607ad74bbec2d3f741b94f8 Signed-off-by: abeykun <abeykun@codeaurora.org>
| * | | | 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>