Skip to content

amd_performance_monitor: give driver some time before giving up

Marcin Ślusarz requested to merge mslusarz/piglit:amd_perf_mon_time into master

Currently, the "measure" test depends on one of these possibilities:

  1. the counters it selects are computed by the driver on the CPU side, so they can be returned immediately
  2. asking for hardware counters value is extremely fast (in order of microseconds)
  3. the driver blocks waiting for hardware counters (unlikely)
  4. the CPU is very slow (unlikely for x86_64)

For Iris we currently hit 1), but if we change the order of counters (something I would like to do) Iris will fail because of 2).

On my SKL system asking for HW counters take ~10ms, so 5 x 50ms in this test should be enough even for a heavily loaded system.

Merge request reports

Loading