Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/pm: Disable D3Cold for BMG only on specific platforms

Restrict D3Cold disablement for BMG to unsupported NUC platforms,
instead of disabling it on all platforms.

Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Fixes: 3e331a6715ee ("drm/xe/pm: Temporarily disable D3Cold on BMG")
Link: https://patch.msgid.link/20260123173238.1642383-1-karthik.poosa@intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit 39125eaf8863ab09d70c4b493f58639b08d5a897)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

authored by

Karthik Poosa and committed by
Rodrigo Vivi
666c654a 51cedb93

+10 -3
+10 -3
drivers/gpu/drm/xe/xe_pm.c
··· 8 8 #include <linux/fault-inject.h> 9 9 #include <linux/pm_runtime.h> 10 10 #include <linux/suspend.h> 11 + #include <linux/dmi.h> 11 12 12 13 #include <drm/drm_managed.h> 13 14 #include <drm/ttm/ttm_placement.h> ··· 367 366 368 367 static u32 vram_threshold_value(struct xe_device *xe) 369 368 { 370 - /* FIXME: D3Cold temporarily disabled by default on BMG */ 371 - if (xe->info.platform == XE_BATTLEMAGE) 372 - return 0; 369 + if (xe->info.platform == XE_BATTLEMAGE) { 370 + const char *product_name; 371 + 372 + product_name = dmi_get_system_info(DMI_PRODUCT_NAME); 373 + if (product_name && strstr(product_name, "NUC13RNG")) { 374 + drm_warn(&xe->drm, "BMG + D3Cold not supported on this platform\n"); 375 + return 0; 376 + } 377 + } 373 378 374 379 return DEFAULT_VRAM_THRESHOLD; 375 380 }