From: jcs Date: Thu, 9 Sep 2021 02:23:14 +0000 (+0000) Subject: Don't print references to Intel's website for downloading firmware X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=27624bc254bff9a17a9688c5fa1ebe4229378388;p=openbsd Don't print references to Intel's website for downloading firmware when loading fails, it will just confuse people ok jsg --- 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;