Skip to content

Commit c0de1cc

Browse files
kpoosagregkh
authored andcommitted
drm/xe/pm: Disable D3Cold for BMG only on specific platforms
[ Upstream commit bb36170 ] 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: 3e331a6 ("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 39125ea) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c8a5ec9 commit c0de1cc

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
@@ -7,6 +7,7 @@
77

88
#include <linux/pm_runtime.h>
99
#include <linux/suspend.h>
10+
#include <linux/dmi.h>
1011

1112
#include <drm/drm_managed.h>
1213
#include <drm/ttm/ttm_placement.h>
@@ -270,9 +271,15 @@ int xe_pm_init_early(struct xe_device *xe)
270271

271272
static u32 vram_threshold_value(struct xe_device *xe)
272273
{
273-
/* FIXME: D3Cold temporarily disabled by default on BMG */
274-
if (xe->info.platform == XE_BATTLEMAGE)
275-
return 0;
274+
if (xe->info.platform == XE_BATTLEMAGE) {
275+
const char *product_name;
276+
277+
product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
278+
if (product_name && strstr(product_name, "NUC13RNG")) {
279+
drm_warn(&xe->drm, "BMG + D3Cold not supported on this platform\n");
280+
return 0;
281+
}
282+
}
276283

277284
return DEFAULT_VRAM_THRESHOLD;
278285
}

0 commit comments

Comments
 (0)