commit | 3f0c01a98ac9b275b3cf9fb6c1a96b8584f00d0f | [log] [tgz] |
---|---|---|
author | Manasi Navare <navaremanasi@chromium.org> | Fri Oct 04 18:01:55 2024 +0000 |
committer | Manasi Navare <navaremanasi@chromium.org> | Tue Oct 15 21:17:27 2024 +0000 |
tree | a9df37befd56d8bd88081103fac88ecfd063ba22 | |
parent | c7c2efb2d243b8fd4b49a1a16927860d11a0b812 [diff] |
drm_hwcomposer: Plumb link status BAD to OnHotplugEvent composer callback This updates the Uevent handler to handle the hotplug events sent by the kernel for link training failure. Adds support in hotplug handler in resourcemanager to read connector properties and read the value of link-status property. If this is set to DRM_MODE_LINK_STATUS_BAD, then invoke the OnHotplugEvent() composer callback with the BAD CABLE DisplayHotplugEvent to notify the Surfaceflinger about link training failure. Currently this uses the ERROR_INCOMPATIBLE_CABLE field of the DisplayHotplugEvent callback. The longer term would be to define a new field in this enum to indicate MODESET_RETRY and use this INCOMPATIBLE_CABLE for the terminal link train failure state. Change-Id: I823d7570dd08e476d0c887e350bce3f8f0069afb Signed-off-by: Manasi Navare <navaremanasi@chromium.org>
Patches to drm_hwcomposer are very much welcome, we really want this to be the universal HW composer implementation for Android and similar platforms. So please bring on porting patches, bugfixes, improvements for documentation and new features.
A short list of contribution guidelines:
Submit changes via gitlab merge requests on gitlab.freedesktop.org.
drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the developer's certificate of origin: http://developercertificate.org/.
When submitting new code please follow the naming conventions documented in the generated documentation. Also please make full use of all the helpers and convenience macros provided by drm_hwcomposer. The below command can help you with formatting of your patches:
git diff | clang-format-diff-15 -p 1 -style=file
Hardware specific changes should be tested on relevant platforms before committing.
If you need inspiration, please checkout our TODO issues.
Happy hacking!