summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Stein <jcs@cvs.openbsd.org>2021-09-09 02:23:15 +0000
committerJoshua Stein <jcs@cvs.openbsd.org>2021-09-09 02:23:15 +0000
commit7e4206dca8985d9fd8a449cfe84773a5fad00265 (patch)
treebdaf1b2b8f7d118a272e09b335cbee17eda57058
parent0de0c61958739a2fe11b7b22f3f04dc7ee0d3d9b (diff)
Don't print references to Intel's website for downloading firmware
when loading fails, it will just confuse people ok jsg
-rw-r--r--sys/dev/pci/drm/i915/display/intel_csr.c2
-rw-r--r--sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915/display/intel_csr.c b/sys/dev/pci/drm/i915/display/intel_csr.c
index f173fe33ede..21b4e7a8b3a 100644
--- a/sys/dev/pci/drm/i915/display/intel_csr.c
+++ b/sys/dev/pci/drm/i915/display/intel_csr.c
@@ -657,8 +657,10 @@ static void csr_load_work_fn(struct work_struct *work)
"Failed to load DMC firmware %s."
" Disabling runtime power management.\n",
csr->fw_path);
+#ifdef __linux__
drm_notice(&dev_priv->drm, "DMC firmware homepage: %s",
INTEL_UC_FIRMWARE_URL);
+#endif
}
release_firmware(fw);
diff --git a/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c b/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c
index d0c82382f2e..36d554def75 100644
--- a/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c
+++ b/sys/dev/pci/drm/i915/gt/uc/intel_uc_fw.c
@@ -391,8 +391,10 @@ fail:
drm_notice(&i915->drm, "%s firmware %s: fetch failed with error %d\n",
intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, err);
+#ifdef __linux__
drm_info(&i915->drm, "%s firmware(s) can be downloaded from %s\n",
intel_uc_fw_type_repr(uc_fw->type), INTEL_UC_FIRMWARE_URL);
+#endif
release_firmware(fw); /* OK even if fw is NULL */
return err;