drm/xe: enable lite restore
authorFei Yang <fei.yang@intel.com>
Thu, 17 Oct 2024 16:27:10 +0000 (09:27 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 21 Oct 2024 17:34:45 +0000 (10:34 -0700)
commit6ef3bb60557d5e7f5af442c8c9ef0a9190bf3d23
tree6c398e4c51c0143adeaead32e79afe3907162238
parent2677520152bc9e732d5e033fe013444db5b4db84
drm/xe: enable lite restore

The lite restore is a performance improvement feature which avoids
unnecessary context switch (flush, save and restore) if the incoming
context has a ContextID matching that of the outgoing context. The
scheduling is done by the GuC firmware, so on the driver side it's
just a matter of setting corresponding GUC_CTL_FEATURE flag.
This is supposed to be enabled by default, thus the flag is set
unconditionally.

Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241017162710.942553-2-fei.yang@intel.com
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc_fwif.h