summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2023-06-14 13:52:00 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:35:06 -0500
commit54c5b74a06939bec61aa59421aa1073c0b666c2c (patch)
treeaaee4aa3de3056e2165d93aee24799852dcac4c8 /drivers
parent413343584725f1fab9c4c676504cf6478dc3281b (diff)
drm/xe: Don't raise error on fused-off media
It's legitimate for the media GMD_ID register to read back as 0x0 if media functionality is fused off or otherwise not present on the platform. Avoid printing an "unknown media version" error message for this case. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://lore.kernel.org/r/20230614205202.3376752-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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/xe/xe_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 5c0c2e9b901e..749826548b4a 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -447,6 +447,10 @@ static void handle_gmdid(struct xe_device *xe,
peek_gmdid(xe, GMD_ID.addr + 0x380000, &ver, media_revid);
+ /* Media may legitimately be fused off / not present */
+ if (ver == 0)
+ return;
+
for (int i = 0; i < ARRAY_SIZE(media_ip_map); i++) {
if (ver == media_ip_map[i].ver) {
xe->info.media_verx100 = ver;