Skip to contentSkip to conversation

drm/i915: Remove unused engine->cleanup

PATCH In review Michał Winiarski 3 participants 3 messages Jul 12, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Remove unused engine->cleanup

There's nothing there. Last vfunc got removed along with gen8 legacy ringbuffer submission.

---
 drivers/gpu/drm/i915/intel_lrc.c        | 3 ---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 3 ---
 drivers/gpu/drm/i915/intel_ringbuffer.h | 1 -
 3 files changed, 7 deletions(-)
drivers/gpu/drm/i915/intel_lrc.c +0 -3
index 35d37af0cb9a..0a7fefd718c4 100644
@@ -2341,9 +2341,6 @@ void intel_logical_ring_cleanup(struct intel_engine_cs *engine)
 		WARN_ON((I915_READ_MODE(engine) & MODE_IDLE) == 0);
 	}
 
-	if (engine->cleanup)
-		engine->cleanup(engine);
-
 	intel_engine_cleanup_common(engine);
 
 	lrc_destroy_wa_ctx(engine);
drivers/gpu/drm/i915/intel_ringbuffer.c +0 -3
index f4bd185c9369..8137eaa146b9 100644
@@ -1446,9 +1446,6 @@ void intel_engine_cleanup(struct intel_engine_cs *engine)
 	intel_ring_unpin(engine->buffer);
 	intel_ring_free(engine->buffer);
 
-	if (engine->cleanup)
-		engine->cleanup(engine);
-
 	intel_engine_cleanup_common(engine);
 
 	dev_priv->engine[engine->id] = NULL;
drivers/gpu/drm/i915/intel_ringbuffer.h +0 -1
index d1eee08e5f6b..c2a9ae1fd01e 100644
@@ -503,7 +503,6 @@ struct intel_engine_cs {
 	 * monotonic, even if not coherent.
 	 */
 	void		(*irq_seqno_barrier)(struct intel_engine_cs *engine);
-	void		(*cleanup)(struct intel_engine_cs *engine);
 
 	/* GEN8 signal/wait table - never trust comments!
 	 *	  signal to	signal to    signal to   signal to      signal to
Signature · 6 lines
2.17.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

Quoting Michał Winiarski (2018-07-12 13:44:15)

Quoted 2 lines

There's nothing there. Last vfunc got removed along with gen8 legacy ringbuffer submission.

Honestly it's gt.cleanup_engine that is the unwanted vfunc. engine->cleanup is the right layer, esp as we do not plan to have a single class of engine in the system.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

✓ Fi.CI.BAT: success for drm/i915: Remove unused engine->cleanup

In reply to Michał Winiarski
== Series Details ==

== Series Details ==

Series: drm/i915: Remove unused engine->cleanup
URL : https://patchwork.freedesktop.org/series/46392/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4475 -> Patchwork_9631 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/46392/revisions/1/mbox/

== Known issues ==

Here are the changes found in Patchwork_9631 that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@gem_exec_suspend@basic-s4-devices:
      fi-kbl-7500u:       PASS -> DMESG-WARN (fdo#107139, fdo#105128)

    igt@kms_chamelium@dp-edid-read:
      fi-kbl-7500u:       PASS -> FAIL (fdo#103841)

    
    ==== Warnings ====

    igt@gem_exec_suspend@basic-s4-devices:
      {fi-kbl-8809g}:     DMESG-WARN (fdo#107139) -> INCOMPLETE (fdo#107139)

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

fdo#103841 https://bugs.freedesktop.org/show_bug.cgi?id=103841
fdo#105128 https://bugs.freedesktop.org/show_bug.cgi?id=105128
fdo#107139 https://bugs.freedesktop.org/show_bug.cgi?id=107139

== Participating hosts (45 -> 42) ==

Additional (1): fi-elk-e7500
Missing (4): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-hsw-4200u

== Build changes ==

* Linux: CI_DRM_4475 -> Patchwork_9631

CI_DRM_4475: 1b6f049d73237a170919604538e747b0282b0109 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4551: 93cf6931b33e2c0f5b89c89b65817fe245ecc391 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9631: 0e4085f67331144928a13c2385b3512f5b0eb562 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

0e4085f67331 drm/i915: Remove unused engine->cleanup

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9631/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx