]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe: Add skip_guc_pc flag
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Sat, 18 Nov 2023 00:02:01 +0000 (16:02 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:08 +0000 (11:45 -0500)
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>
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_pci.c

index ea53f9dfc199c50be4755fc0beb81ea560acabd0..c4b6aa8fcec176801aca2ab7859624967538b2aa 100644 (file)
@@ -264,6 +264,8 @@ struct xe_device {
                u8 supports_mmio_ext:1;
                /** @has_heci_gscfi: device has heci gscfi */
                u8 has_heci_gscfi:1;
+               /** @skip_guc_pc: Skip GuC based PM feature init */
+               u8 skip_guc_pc:1;
 
 #if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
                struct {
index bbf2f5b64bac8528ea3d7bcf6f97296c3d942e0f..1c4f9081e84c28f592a8f87080f63044de3883d6 100644 (file)
@@ -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 &&