- Mar 13, 2025
-
-
José Expósito authored
Test that, once a VKMS device is enabled, the connectors can be hot-plugged and hot-unplugged. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Test that, once a VKMS device is enabled, the connector values, with the exception of status, can't change and that deleting it or the attached encoders doesn't change the VKMS device. Connector hot-plug/unplug is not covered by this test. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Test that, once a VKMS device is enabled, the encoder values can't change and that deleting it or the attached CRTCs doesn't change the VKMS device. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Test that, once a VKMS device is enabled, the CRTC values can't change and that deleting it or the attached planes/encoders doesn't change the VKMS device. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Test that, once a VKMS device is enabled, the plane values can't change and that deleting it or the attached CRTCs doesn't change the VKMS device. Add a function that performs a basic validation checking that the device created matches the expected one. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with too many connectors and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Enable a VKMS device without adding connectors and test that it is created with the specified configuration. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with a CRTC without encoders and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with an encoder without possible CRTCs and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with too many encoders and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device without adding encoders and test that it fails. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with too many CRTCs and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device without adding CRTCs and test that it fails. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with a plane without possible CRTCs and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with multiple cursor planes for one of its CRTCs and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device with multiple primary planes for one of its CRTCs and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Try to enable a VKMS device without a primary plane for one of its CRTCs and test that it fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
The kernel references pipeline items with 32 bit bitmaks, therefore, adding more than 31 items causes an overflow. Make sure that this limit is handled correctly. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
In order to make the process of creating new VKMS devices as simple as possible and in a declarative way, create a set of structures representing a VKMS device configuration and a function that reads them and applies the configuration. In addition, add a test using this new function that checks that creating a device without planes fails. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
It shouldn't be possible to enable a device without creating and attaching its pipeline items. Test that the device is not enabled and also that no actual device was created using libdrm. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
The VKMS driver allows to create multiple devices handled by the same driver but with a different sysname. In order to differentiate between them, allow to find devices by sysname. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add helpers to attach and detach connectors and encoders and a test checking the different valid and invalid cases. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add helpers to attach and detach encoders and CRTCs and a test checking the different valid and invalid cases. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add helpers to attach and detach planes and CRTCs and a test checking the different valid and invalid cases. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Test that all valid values for the connector "status" work and that it changes accordingly. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
For a VKMS connector, it is only possible to set invalid values in the connector status. Test that setting wrong values fails and that the connector is not accidentally changed. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add a helper to get the connector status and test that the default value is set when a new connector is created. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add a helper to create a connector and a test checking that the default files and directories are created. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add a helper to create a encoder and a test checking that the default files and directories are created. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Test that all valid values for the CRTC "writeback" work and that it changes accordingly. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
For a VKMS CRTC, it is only possible to set invalid values in the writeback connector status. Test that setting wrong values fails and that the CRTC status is not accidentally changed. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add a helper to get the CRTC writeback status and test that the default value is set when a new CRTC is created. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add a helper to create a CRTC and a test checking that the default files and directories are created. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Test that all valid values for the plane "type" work and that it changes accordingly. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
For a VKMS plane, it is only possible to set invalid values in the plane type. Test that setting wrong values fails and that the plane is not accidentally changed. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add a helper to get the plane type and test that the default type is set when a new plane is created. Reviewed-by:
Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add a helper to create a plane and a test checking that the default files and directories are created. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
For a VKMS device, it is only possible to set invalid values in two places: - The device name: The "vkms" name is reserved for the default device created by the driver. - The device enabled status: It should only accept boolean values. Test that setting wrong values fails and that the device is not accidentally enabled. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Add helper to enable, disable and check the enabled status of a VKMS device and add a test to ensure that the default value is correctly set. Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-
José Expósito authored
Create a library containing helpers for creating VKMS devices and configuring them dynamically using configfs. For the moment, add the minimal number of helpers to be able to start testing VKMS's configfs support: Create device, destroy device and destroy all devices. Also, include the simplest possible test using those helpers (checking the device's default files) and the scaffolding required to generate the documentation. Co-developed-by:
Jim Shargo <jshargo@chromium.org> Signed-off-by:
Jim Shargo <jshargo@chromium.org> Co-developed-by:
Marius Vlad <marius.vlad@collabora.com> Signed-off-by:
Marius Vlad <marius.vlad@collabora.com> Signed-off-by:
José Expósito <jose.exposito89@gmail.com>
-