summaryrefslogtreecommitdiff
path: root/libhwc2.1/libdisplayinterface/ExynosDeviceDrmInterface.cpp
AgeCommit message (Collapse)Author
2023-03-02hwc3: add support for refresh rate indicator callbackWiwit Rifa'i
This will add support in HWC to expose the refresh rate in panel to SF using HWC3 callback API so that SF can update the refresh rate overlay indicator to the actual refresh rate in the panel. HWC will monitor the panel refresh rate based on some sysfs nodes. Bug: 267825022 Test: enable refresh rate indicator, wait for idle, AOD Change-Id: Ibc80d66eae6b21c3cf84d35fa819e97ccc509ede
2023-01-31libhwc2.1: add display id for onRefreshlinpeter
Bug: 257422563 test: check on refresh call Change-Id: I00584237bf2b8b26c86a8964dc8a15b6324f74c5
2022-09-13libhwc2.1: handling histogram events from different displaysusi_su
use crtc_id to tell which display histogram event handling should be called Bug: 238830432 Test: local verified with an aidl_hist_client on an F10 proto1.0, sampling histogram concurrently, and check the readback histogram data Change-Id: Ic67f25bbf557f024e8e89b5ad43a0d510071c7e2
2022-05-23libhwc2.1: add lock for callback functionsMidas Chien
When handling callback functions, the callback function pointer may be assigned to null by RegisterCallback function. It will cause crash. Add locks for callback functions to avoid it. Also don't request global display lock when handling vsync callback to avoid it be blocked by display main thread. Bug: 223857925 Test: prefetto, restart framework, restart composer, boot Change-Id: I00351031de9984bdd788bd7a1712c5240a294e4b
2022-04-08hwc3: implement VsyncIdle callback for HWC3Yichi Chen
The patch creates the new method to register the HWC3 callback function. The corresponding VsyncIdle callback function will be called when idle TE vrefresh is changed in the idle. Bug: 194068871 Test: switch refresh rates, enable panel idle at 60hz Change-Id: I4876fdfd341366ca2012a3ce6704a2c8de5866d2
2022-03-03libhwc2.1: handle panel idle enter eventMidas Chien
Some panels may still keep shorter TE period a while after exiting idle. It may cause underrun if any layers aren't able to be handled. To avoid underrun, when panel enter idle and its idle TE period is shorter, recalculate resoruce requirement. If any resource is insufficient, notify driver to do specific handle when exiting panel idle. Bug: 194068871 Bug: 202182467 Test: play 2k@30 video in portrait mode with short idle timer Change-Id: I3d7918312ee8e7b2ee171dc3f7295dff814e0a68
2022-03-03libhwc2.1: Add Histogram handling codesYongWook Shin
It creates Histogram related functions and adds related handling codes. Bug: 197519352 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: Ia0d3af1b278d6e984b4dbb7fcdc5dbba6acda2b0 Merged-In: Ia0d3af1b278d6e984b4dbb7fcdc5dbba6acda2b0 (cherry picked from commit d350b14c64ee443bd0c9e5d89b10df03ed1e5fbc)
2021-09-27libhwc2.1: Separate plane type to support new purpose planeYongWook Shin
In case of GS101, the number of planes is same as the number of windows. But, new purpose planes are added for RCD (Round Corner Display) function from GS201 and it occurs some problems. This patch separates planes to normal planes which are used for window composition and special purpose planes. The number of windows will be calcurated from the number of normal planes. Bug: 186553202 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: I1a3048c86f2479da974c6be7f63ade1342751a09
2021-07-10Merge changes from topic "b/157272869" into sc-dev am: fbbe252191 am: ↵Long Ling
730de634ee am: eda59c6212 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/common/+/15178001 Change-Id: I1ddbdf7f04dc102422a9dd8b758448cfbbf975a6
2021-07-01libhwc2.1: Handle TUI eventsHyunKyung Kim
This patch refreshes frame or skipes frame update when tui event is generated. Bug: 157272869 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I92affee60d02d8570378e2f2275ccd0a46b063ec
2021-05-20libhwc2.1: Support SoC specific namespaceYongWook Shin
To support SoC variations, SoC specific codes will support own namespace. Common codes will use specific namespace defined by build variable such as TARGET_BOARD_PLATFORM. Bug: 186905324 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: I4667525730308f683555e331df92cb0e2725fa0a
2021-03-22libhwc2.1: Check if display interface is validHyunKyung Kim
This fatch removes display from mDisplays if display interface is not valid. Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I3feafe2e61edaee1deca66893f4647f4dcecd2a8
2021-03-22libhwc2.1: Support dual display in drm interfaceHyunKyung Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Ia61312f848ed3b908a92faf2ddab6fc8a8e985cd
2021-03-22libhwc2.1: Change debug tagHyunKyung Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I25609f1164062ca354830c365b740bcc514d0eed
2021-03-19libhwc2.1: modify concept of display's type and IDSeungchul Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Change-Id: I4926f2b30abc2a9b4ddf1c47038ac7b9573213b1 Signed-off-by: Seungchul Kim <sc377.kim@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-12-31libhwc2.1: Get clock and ppc constant values from display driverHyunKyung Kim
Clock and ppc constant values are used to check scale down ratio. Read them from display driver. Bug: 170821166 Test: Check PPC and Disp frequency loaded from driver Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Ie68d2a1d98e093cf115a7060ec9c92c54a24cff4
2020-09-22libhwc2.1: Change license of header fileHyunKyung Kim
This patch removes definitions for fb interface and changes license of DeconCommonHeader.h. Bug: 149514037 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I2681cc827b69cbd09b000bb6d546fef0d1ca3b95
2020-03-13libhwc2.1: Cleanup for drmFormatToHalFormats()HyunKyung Kim
Bug: 150034262 Change-Id: Ieaa0cd0300795556db9efcda5dfde5e08f3fc8d1 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-02libhwc2.1: Get channel restriction info from kernel in drm interfaceHyunKyung Kim
Change-Id: Ie5ee1607c85e3e813b4bf52998fc6b551fb6ff0e Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-02-20libhwc2.1: Update copyright in newly added filesHyunKyung Kim
Change-Id: I2b3b4e2d23290b56994a3e478ef57804bfc3e74c Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Unregister hotplug handler in drm interfaceHyunKyung Kim
This patch unregisters hotplug event handler when ExynosDeviceDrmInterface is destroyed. Change-Id: I52662fd4d64d5b9a583a328e885208d9428b9b63 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Set type for drm interfaceHyunKyung Kim
Change-Id: I20f612163a2f910b04955e4bff7f75d43d0b296b Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Clean up ExynosDeviceDrmInterface codeHyunKyung Kim
Change-Id: I6784dcc3d78d144bcb845d658fab7d9bd482db02 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Change pointer type for device and display interfaceHyunKyung Kim
Change-Id: Ief439617f23ba5a4698ddcae73f23b52c35b4c04 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-23libhwc2.1: Support DRM interfaceHyunKyung Kim
Change-Id: I2bc40d895f682ea51f179a26e56e2748a171072d Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>