drm/i915/dmc: define firmware URL locally
authorJani Nikula <jani.nikula@intel.com>
Fri, 5 Apr 2024 19:37:39 +0000 (22:37 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 8 Apr 2024 08:03:16 +0000 (11:03 +0300)
Avoid the dependency on intel_uc_fw.h, and allow removal of xe compat
intel_uc_fw.h. If there needs to be duplication of the URL, at least
have the duplication in a sensible way.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/15935837a0c15f861bb2a688cc53514f47153ef3.1712345787.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dmc.c
drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
drivers/gpu/drm/xe/compat-i915-headers/intel_uc_fw.h [deleted file]

index 3fa851b5c7a6b52a0dca0eb24c0ef3675c5d8a8f..e61e9c1b89474e4abe6635e1f67d33139b9cbdb4 100644 (file)
@@ -38,6 +38,8 @@
  * low-power state and comes back to normal.
  */
 
+#define INTEL_DMC_FIRMWARE_URL "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
+
 enum intel_dmc_id {
        DMC_FW_MAIN = 0,
        DMC_FW_PIPEA,
@@ -953,7 +955,7 @@ static void dmc_load_work_fn(struct work_struct *work)
                           " Disabling runtime power management.\n",
                           dmc->fw_path);
                drm_notice(&i915->drm, "DMC firmware homepage: %s",
-                          INTEL_UC_FIRMWARE_URL);
+                          INTEL_DMC_FIRMWARE_URL);
        }
 
        release_firmware(fw);
index 9b441ba5394935afc313ff1381dd0be6a533b569..33ffbe3d162fa176f0f9ce84748568eb498c16e6 100644 (file)
@@ -26,7 +26,6 @@
 #include "i915_utils.h"
 #include "intel_gt_types.h"
 #include "intel_step.h"
-#include "intel_uc_fw.h"
 #include "intel_uncore.h"
 #include "intel_runtime_pm.h"
 #include <linux/pm_runtime.h>
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_uc_fw.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_uc_fw.h
deleted file mode 100644 (file)
index 0097453..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: MIT */
-/*
- * Copyright © 2023 Intel Corporation
- */
-
-#ifndef _INTEL_UC_FW_H_
-#define _INTEL_UC_FW_H_
-
-#define INTEL_UC_FIRMWARE_URL "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
-
-#endif