Skip to content

Commit bb36170

Browse files
kpoosaThomas Hellström
authored andcommitted
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 <[email protected]> Fixes: 3e331a6 ("drm/xe/pm: Temporarily disable D3Cold on BMG") Link: https://patch.msgid.link/[email protected] Reviewed-by: Rodrigo Vivi <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]> (cherry picked from commit 39125ea) Signed-off-by: Thomas Hellström <[email protected]>
1 parent 16264a3 commit bb36170

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

drivers/gpu/drm/xe/xe_pm.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/fault-inject.h>
99
#include <linux/pm_runtime.h>
1010
#include <linux/suspend.h>
11+
#include <linux/dmi.h>
1112

1213
#include <drm/drm_managed.h>
1314
#include <drm/ttm/ttm_placement.h>
@@ -357,9 +358,15 @@ ALLOW_ERROR_INJECTION(xe_pm_init_early, ERRNO); /* See xe_pci_probe() */
357358

358359
static u32 vram_threshold_value(struct xe_device *xe)
359360
{
360-
/* FIXME: D3Cold temporarily disabled by default on BMG */
361-
if (xe->info.platform == XE_BATTLEMAGE)
362-
return 0;
361+
if (xe->info.platform == XE_BATTLEMAGE) {
362+
const char *product_name;
363+
364+
product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
365+
if (product_name && strstr(product_name, "NUC13RNG")) {
366+
drm_warn(&xe->drm, "BMG + D3Cold not supported on this platform\n");
367+
return 0;
368+
}
369+
}
363370

364371
return DEFAULT_VRAM_THRESHOLD;
365372
}

0 commit comments

Comments
 (0)