summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2023-04-10 11:39:10 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-19 18:31:41 -0500
commit3c6be2542e353268b27ca4d3cc433c9e6a49bd26 (patch)
tree476d847155cdc865b65ec688e6cb6b85b96e33a0
parentbf08dd47d1567cb922d60a669e5a8a0c40253840 (diff)
downloadlwn-3c6be2542e353268b27ca4d3cc433c9e6a49bd26.tar.gz
lwn-3c6be2542e353268b27ca4d3cc433c9e6a49bd26.zip
drm/xe: Only request PCODE_WRITE_MIN_FREQ_TABLE on LLC platforms
PCODE_WRITE_MIN_FREQ_TABLE is only applicable to platforms with an LLC. Change the discrete GPU check to an LLC check instead; this take care of skipping not only the discrete platforms, but also integrated platforms like MTL that do not have an LLC. Fixes MTL dmesg error: xe 0000:00:02.0: [drm] *ERROR* PCODE Mailbox failed: 1 Illegal Command Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20230410183910.2696628-3-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
-rw-r--r--drivers/gpu/drm/xe/xe_pcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
index fb1ce2d49bec..99bb730684ed 100644
--- a/drivers/gpu/drm/xe/xe_pcode.c
+++ b/drivers/gpu/drm/xe/xe_pcode.c
@@ -210,7 +210,7 @@ int xe_pcode_init_min_freq_table(struct xe_gt *gt, u32 min_gt_freq,
int ret;
u32 freq;
- if (IS_DGFX(gt_to_xe(gt)))
+ if (!gt_to_xe(gt)->info.has_llc)
return 0;
if (max_gt_freq <= min_gt_freq)