diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-08-07 12:04:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-08-07 14:30:55 +0100 |
commit | 2edda80db3d065b875731de2a846f9e700ccb5ce (patch) | |
tree | 7e9f1c3c0d5ff11a5b7644188c939b3317852cdc /drivers/gpu/drm/i915/gt/intel_engine_user.h | |
parent | fdde3097488eebc9c62fe7311388521a2711d940 (diff) | |
download | linux-2edda80db3d065b875731de2a846f9e700ccb5ce.tar.bz2 |
drm/i915: Rename engines to match their user interface
During engine setup, we may find that some engines are fused off causing
a misalignment between internal names and the instances seen by users,
e.g. (I915_ENGINE_CLASS_VIDEO_DECODE, 1) may be vcs2 in hardware.
Normally this is invisible to the user, but a few debug interfaces (and
our own internal tracing) use the original HW name not the name the user
would expect as formed from their class:instance tuple. Replace our
internal name with the uabi name for consistency with, for example, error
states.
v2: Keep the pretty printing of class name in the selftest
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111311
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190807110431.8130-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_engine_user.h')
-rw-r--r-- | drivers/gpu/drm/i915/gt/intel_engine_user.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_engine_user.h b/drivers/gpu/drm/i915/gt/intel_engine_user.h index 9e5f113e5027..f845ea1cbfaa 100644 --- a/drivers/gpu/drm/i915/gt/intel_engine_user.h +++ b/drivers/gpu/drm/i915/gt/intel_engine_user.h @@ -20,4 +20,6 @@ unsigned int intel_engines_has_context_isolation(struct drm_i915_private *i915); void intel_engine_add_user(struct intel_engine_cs *engine); void intel_engines_driver_register(struct drm_i915_private *i915); +const char *intel_engine_class_repr(u8 class); + #endif /* INTEL_ENGINE_USER_H */ |