Skip to content

Commit 666c654

Browse files
kpoosarodrigovivi
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: Rodrigo Vivi <[email protected]>
1 parent 51cedb9 commit 666c654

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>
@@ -366,9 +367,15 @@ ALLOW_ERROR_INJECTION(xe_pm_init_early, ERRNO); /* See xe_pci_probe() */
366367

367368
static u32 vram_threshold_value(struct xe_device *xe)
368369
{
369-
/* FIXME: D3Cold temporarily disabled by default on BMG */
370-
if (xe->info.platform == XE_BATTLEMAGE)
371-
return 0;
370+
if (xe->info.platform == XE_BATTLEMAGE) {
371+
const char *product_name;
372+
373+
product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
374+
if (product_name && strstr(product_name, "NUC13RNG")) {
375+
drm_warn(&xe->drm, "BMG + D3Cold not supported on this platform\n");
376+
return 0;
377+
}
378+
}
372379

373380
return DEFAULT_VRAM_THRESHOLD;
374381
}

0 commit comments

Comments
 (0)