summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_pci.c
diff options
context:
space:
mode:
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>2023-11-17 16:02:01 -0800
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:45:08 -0500
commitf1cb5f647e8959a1034941d85b311d7485a7095f (patch)
tree4d647df165ededf2b8cdefda3e0146407e745cdb /drivers/gpu/drm/xe/xe_pci.c
parentc550f64f082b9da305ab7d07b8716389a80b641a (diff)
downloadlwn-f1cb5f647e8959a1034941d85b311d7485a7095f.tar.gz
lwn-f1cb5f647e8959a1034941d85b311d7485a7095f.zip
drm/xe: Add skip_guc_pc flag
This flag can be used to disable GuC based power management. This could be used for debug or comparison to host based C6. v2: Fix missing definition Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_pci.c')
-rw-r--r--drivers/gpu/drm/xe/xe_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index bbf2f5b64bac..1c4f9081e84c 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -64,6 +64,7 @@ struct xe_device_desc {
u8 has_sriov:1;
u8 bypass_mtcfg:1;
u8 supports_mmio_ext:1;
+ u8 skip_guc_pc:1;
};
__diag_push();
@@ -591,6 +592,7 @@ static int xe_info_init(struct xe_device *xe,
xe->info.has_asid = graphics_desc->has_asid;
xe->info.has_flat_ccs = graphics_desc->has_flat_ccs;
xe->info.has_range_tlb_invalidation = graphics_desc->has_range_tlb_invalidation;
+ xe->info.skip_guc_pc = desc->skip_guc_pc;
xe->info.enable_display = IS_ENABLED(CONFIG_DRM_XE_DISPLAY) &&
xe_modparam.enable_display &&