Skip to content

Commit 6ef3bb6

Browse files
fei-yangjohnharr-intel
authored andcommitted
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
1 parent 2677520 commit 6ef3bb6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/gpu/drm/xe/xe_guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static u32 guc_ctl_debug_flags(struct xe_guc *guc)
7070

7171
static u32 guc_ctl_feature_flags(struct xe_guc *guc)
7272
{
73-
u32 flags = 0;
73+
u32 flags = GUC_CTL_ENABLE_LITE_RESTORE;
7474

7575
if (!guc_to_xe(guc)->info.skip_guc_pc)
7676
flags |= GUC_CTL_ENABLE_SLPC;

drivers/gpu/drm/xe/xe_guc_fwif.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ struct guc_update_exec_queue_policy {
105105

106106
#define GUC_CTL_FEATURE 2
107107
#define GUC_CTL_ENABLE_SLPC BIT(2)
108+
#define GUC_CTL_ENABLE_LITE_RESTORE BIT(4)
108109
#define GUC_CTL_DISABLE_SCHEDULER BIT(14)
109110

110111
#define GUC_CTL_DEBUG 3

0 commit comments

Comments
 (0)