drm/i915/gsc: add slow_firmware flag to the gsc device definition
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 7 Sep 2022 21:51:01 +0000 (00:51 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 12 Sep 2022 12:23:10 +0000 (15:23 +0300)
Add slow_firmware flag to the gsc device definition
and pass it to mei auxiliary device, this instructs
the driver to use longer operation timeouts.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907215113.1596567-5-tomas.winkler@intel.com
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_gsc.c

index e0236ff1d07207df17902d3bba8a510b79d8675a..73498c2574c86a85d0cb648e99ba5f8372a70af6 100644 (file)
@@ -41,6 +41,7 @@ struct gsc_def {
        unsigned long bar;
        size_t bar_size;
        bool use_polling;
+       bool slow_firmware;
 };
 
 /* gsc resources and definitions (HECI1 and HECI2) */
@@ -145,6 +146,7 @@ add_device:
        adev->bar.end = adev->bar.start + def->bar_size - 1;
        adev->bar.flags = IORESOURCE_MEM;
        adev->bar.desc = IORES_DESC_NONE;
+       adev->slow_firmware = def->slow_firmware;
 
        aux_dev = &adev->aux_dev;
        aux_dev->name = def->name;