diff options
| author | Thomas Zimmermann <[email protected]> | 2023-10-09 16:06:35 +0200 |
|---|---|---|
| committer | Javier Martinez Canillas <[email protected]> | 2023-10-13 17:53:32 +0200 |
| commit | a48e2cc92835fa1d9b373b804b2173c779387b8e (patch) | |
| tree | 0edbf12dea6b953dee748f08a0c998a8c89e1b77 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | e755d439c1b7f579dfb7a36e6c2d14d426e14b3a (diff) | |
drm/ssd130x: Fix atomic_check for disabled planes
The plane's atomic_check returns -EINVAL if the CRTC has not been
set. This is the case for disabled planes, for which atomic_check
should return 0. For disabled planes, it also omits the mandatory
call to drm_atomic_helper_check_plane_state().
Replace the test with the boiler-plate code that first invokes
drm_atomic_helper_check_plane_state() and then tests for the plane
to be visible. Return early for non-visible planes.
Signed-off-by: Thomas Zimmermann <[email protected]>
Fixes: d51f9fbd98b6 ("drm/ssd130x: Store the HW buffer in the driver-private CRTC state")
Reviewed-by: Javier Martinez Canillas <[email protected]>
Tested-by: Javier Martinez Canillas <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Javier Martinez Canillas <[email protected]>
Cc: Maxime Ripard <[email protected]>
Signed-off-by: Javier Martinez Canillas <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions