summaryrefslogtreecommitdiff
path: root/benchmarks/gem_create.c
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-05-06 16:48:45 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-05-11 15:56:20 +0300
commit31657c63bcc0c7f0d3eb9d8c03a39b7987c60d7d (patch)
treebcd2d7297fb18e3be96f6daff02bf61b80bfbe60 /benchmarks/gem_create.c
parent609572dd1d3bd91bb035f7742ab705aa9136b639 (diff)
lib/igt_chamelium: Sleep when doing autodiscovery
Autodiscovery was wrongly assuming that whenever we do chamelium_plug() the connector state change is immediate. It was working most of the time for native connectors, but may explain some of the flip-flopping skips. The problem got only more serious with the advent of LSPcons as USB-C, where we have much things happening on the signal path, introducing delays. So for the sake of reliability this change introduces sleep(10) between plug and reprobe. The number is about 2 * the_most_pathological_case_observed. Also the discovery step is performed only if there is no static port mapping set up. After the discovery is done, IGT prints the mapping ready to be pasted into .igtrc. Cc: Kunal Joshi <kunal1.joshi@intel.com> Cc: Imre Deak <imre.deak@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'benchmarks/gem_create.c')
0 files changed, 0 insertions, 0 deletions