[igt-dev] [PATCH i-g-t] tests/kms_chamelium: Force reprobe after replugging the connector
Imre Deak
imre.deak at intel.com
Wed Jun 3 18:34:17 UTC 2020
After replugging a connector and the kernel reports the connector as
connected the cached modes returned by drmModeGetConnectorCurrent() (the
kernel's cached list of modes) may be stale. The modes will be only
updated by a full reprobe. Ensure this by setting output->force_reprobe
which will result in calling drmModeGetConnector().
This fixes sporadic test failures due to seeing no modes unexpectedly.
So far things happened to work, because some in-kernel user of the
output - like fbdev - does a full reprobe sometime after the hotplug
event.
Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
tests/kms_chamelium.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
index dc1b8d1e3..7d3e06433 100644
--- a/tests/kms_chamelium.c
+++ b/tests/kms_chamelium.c
@@ -126,6 +126,7 @@ reprobe_connector(data_t *data, struct chamelium_port *port)
/* let's make sure that igt_display is up to date too */
output = igt_output_from_connector(&data->display, connector);
+ output->force_reprobe = true;
igt_output_refresh(output);
drmModeFreeConnector(connector);
--
2.23.1
More information about the igt-dev
mailing list