drm/i915/perf: Reintroduce wait on OA configuration completion
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Mar 2020 08:57:57 +0000 (08:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Mar 2020 20:34:18 +0000 (20:34 +0000)
commit4b4e973d5eb89244b67d3223b60f752d0479f253
tree2a37d0e3176cc2651d50785acb694a2c7f6d25cf
parentf5e5a33037a8272d545f022f4f28d20948fd4cb8
drm/i915/perf: Reintroduce wait on OA configuration completion

We still need to wait for the initial OA configuration to happen
before we enable OA report writes to the OA buffer.

Reported-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 15d0ace1f876 ("drm/i915/perf: execute OA configuration from command stream")
Closes: https://gitlab.freedesktop.org/drm/intel/issues/1356
Testcase: igt/perf/stream-open-close
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200302085812.4172450-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/i915_perf_types.h