drm/xe: Only request PCODE_WRITE_MIN_FREQ_TABLE on LLC platforms
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 10 Apr 2023 18:39:10 +0000 (11:39 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:31:41 +0000 (18:31 -0500)
commit3c6be2542e353268b27ca4d3cc433c9e6a49bd26
tree476d847155cdc865b65ec688e6cb6b85b96e33a0
parentbf08dd47d1567cb922d60a669e5a8a0c40253840
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>
drivers/gpu/drm/xe/xe_pcode.c