summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-06-17 19:04:30 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-06-18 21:07:47 +0300
commit3cd7e6814ceacb53602e97893fb5e5bb7b2b1dcf (patch)
tree7b349f7c2633fe568a834ca98036cb211106b32c /refs
parent6f6528df8b6de771ad4dab5ac32d81cb6e858454 (diff)
kmstest.py: Fix CRTC disabling
The KMSTest.atomic_crtc_disable() method deactivates a CRTC but doesn't fully disable it, which requires setting the MODE_ID to 0. Furthermore it doesn't de-associate the CRTC from connectors and planes, which causes atomic check failures as a fully disabled CRTC can't be associated with connectors. It can also lead to the next test failing due to resources still being allocated to the CRTC. To fix this, introduce an AtomicRequest class that wraps around pykms.AtomicReq, and stores a copy of all the properties. When the request is committed the properties are added to a global state, which is then used to locate and release connectors and planes associated with the CRTC in KMSTest.atomic_crtc_disable(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Diffstat (limited to 'refs')
0 files changed, 0 insertions, 0 deletions