Commit ed610f43 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/selftests: Always call the provided engine->emit_init_breadcrumb



While this does not appear to fix any issues, the backend itself knows
when it wants to emit a breadcrumb, so let it make the final call.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200513074809.18194-16-chris@chris-wilson.co.uk
parent 7a0ba6b4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -221,8 +221,7 @@ static int live_noa_delay(void *arg)
		goto out;
	}

	if (rq->engine->emit_init_breadcrumb &&
	    i915_request_timeline(rq)->has_initial_breadcrumb) {
	if (rq->engine->emit_init_breadcrumb) {
		err = rq->engine->emit_init_breadcrumb(rq);
		if (err) {
			i915_request_add(rq);
+1 −2
Original line number Diff line number Diff line
@@ -169,8 +169,7 @@ igt_spinner_create_request(struct igt_spinner *spin,

	intel_gt_chipset_flush(engine->gt);

	if (engine->emit_init_breadcrumb &&
	    i915_request_timeline(rq)->has_initial_breadcrumb) {
	if (engine->emit_init_breadcrumb) {
		err = engine->emit_init_breadcrumb(rq);
		if (err)
			goto cancel_rq;