Commit d6728776 authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Joonas Lahtinen

drm/i915/gsc: add slow_firmware flag to the gsc device definition

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: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Reviewed-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907215113.1596567-5-tomas.winkler@intel.comSigned-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
parent ed57967a
...@@ -41,6 +41,7 @@ struct gsc_def { ...@@ -41,6 +41,7 @@ struct gsc_def {
unsigned long bar; unsigned long bar;
size_t bar_size; size_t bar_size;
bool use_polling; bool use_polling;
bool slow_firmware;
}; };
/* gsc resources and definitions (HECI1 and HECI2) */ /* gsc resources and definitions (HECI1 and HECI2) */
...@@ -145,6 +146,7 @@ static void gsc_init_one(struct drm_i915_private *i915, ...@@ -145,6 +146,7 @@ static void gsc_init_one(struct drm_i915_private *i915,
adev->bar.end = adev->bar.start + def->bar_size - 1; adev->bar.end = adev->bar.start + def->bar_size - 1;
adev->bar.flags = IORESOURCE_MEM; adev->bar.flags = IORESOURCE_MEM;
adev->bar.desc = IORES_DESC_NONE; adev->bar.desc = IORES_DESC_NONE;
adev->slow_firmware = def->slow_firmware;
aux_dev = &adev->aux_dev; aux_dev = &adev->aux_dev;
aux_dev->name = def->name; aux_dev->name = def->name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment