diff options
author | Tvrtko Ursulin <[email protected]> | 2023-11-16 08:44:56 +0000 |
---|---|---|
committer | Tvrtko Ursulin <[email protected]> | 2023-11-20 11:11:47 +0000 |
commit | dfed6b58d54f3a5d7e6bc1fb060e2c936330eba2 (patch) | |
tree | 5c7431d1f33958278aa4a6af1c2106cc671fc944 /drivers/gpu/drm/i915/gt/intel_engine_pm.c | |
parent | e31b380741bfa27d274a9f9610fd732e1204ea24 (diff) |
drm/i915/gsc: Mark internal GSC engine with reserved uabi class
The GSC CS is not exposed to the user, so we skipped assigning a uabi
class number for it. However, the trace logs use the uabi class and
instance to identify the engine, so leaving uabi class unset makes the
GSC CS show up as the RCS in those logs.
Given that the engine is not exposed to the user, we can't add a new
case in the uabi enum, so we insted internally define a kernel
internal class as -1.
At the same time remove special handling for the name and complete
the uabi_classes array so internal class is automatically correctly
assigned.
Engine will show as 65535:0 other0 in the logs/traces which should
be unique enough.
v2:
* Fix uabi class u8 vs u16 type confusion.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Fixes: 194babe26bdc ("drm/i915/mtl: don't expose GSC command streamer to the user")
Cc: Daniele Ceraolo Spurio <[email protected]>
Cc: Alan Previn <[email protected]>
Cc: Matt Roper <[email protected]>
Reviewed-by: Daniele Ceraolo Spurio <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_engine_pm.c')
0 files changed, 0 insertions, 0 deletions