[Intel-gfx] [PATCH] drm/i915/glk: Disable Guc and HuC on GLK
Michal Wajdeczko
michal.wajdeczko at intel.com
Thu Dec 14 22:17:34 UTC 2017
On Thu, 14 Dec 2017 22:58:37 +0100, Anusha Srivatsa
<anusha.srivatsa at intel.com> wrote:
> Since the firmwares are released yet to public repo,
> disable them on Geminilake.
>
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
> Signed-off-by: Anusha Srivatsa <anusha.srivatsa at intel.com>
> ---
> drivers/gpu/drm/i915/i915_pci.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_pci.c
> b/drivers/gpu/drm/i915/i915_pci.c
> index fa67d3d..ddf7530 100644
> --- a/drivers/gpu/drm/i915/i915_pci.c
> +++ b/drivers/gpu/drm/i915/i915_pci.c
> @@ -521,6 +521,11 @@ static const struct intel_device_info
> intel_geminilake_info __initconst = {
> GEN9_LP_FEATURES,
> .platform = INTEL_GEMINILAKE,
> .ddb_size = 1024,
> + /* FIXME Geminilake supports GuC but currently firmwares
> + * have not made it to public repo. Lets disable the support
> + * as a temporary fix.
> + */
> + .has_guc = 0,
Maybe better place to put this fix is __get_platform_enable_guc() like in
[1]
[1] https://patchwork.freedesktop.org/patch/192006/
diff --git a/drivers/gpu/drm/i915/intel_uc.c
b/drivers/gpu/drm/i915/intel_uc.c
index 49bccc9..22b0afe 100644
--- a/drivers/gpu/drm/i915/intel_uc.c
+++ b/drivers/gpu/drm/i915/intel_uc.c
@@ -60,6 +60,8 @@ static int __get_platform_enable_guc(struct
drm_i915_private *dev_priv)
enable_guc |= ENABLE_GUC_LOAD_HUC;
/* Any platform specific fine-tuning can be done here */
+ if (IS_GEMINILAKE(dev_priv))
+ enable_guc = 0; /* no firmware on CI machines */
return enable_guc;
}
> GLK_COLORS,
> };
More information about the Intel-gfx
mailing list