drm/i915/guc: Load GuC on Coffee Lake
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Thu, 8 Jun 2017 23:48:23 +0000 (16:48 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 9 Jun 2017 18:56:53 +0000 (11:56 -0700)
Coffee Lake reuses Kabylake's GuC.

v2: Change Coffeelake to Coffee Lake

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Lukasz Fiedorowicz <lukasz.fiedorowicz@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1496965704-23610-1-git-send-email-anusha.srivatsa@intel.com
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_guc_loader.c

index 4f5fd1ab9f2c1a79244be6f1dc63144349c0f055..e38ff1436d83e777aadd0c8e6439481f543b1f81 100644 (file)
@@ -426,6 +426,7 @@ static const struct intel_device_info intel_kabylake_gt3_info = {
        BDW_FEATURES, \
        .gen = 9, \
        .platform = INTEL_COFFEELAKE, \
+       .has_guc = 1, \
        .ddb_size = 896
 
 static const struct intel_device_info intel_coffeelake_info = {
index d9045b6e897b4b3a2b77f6fad411a9a180f297d4..8b0ae7fce7f2059ae4f303a6a0c401c9e1d3bccd 100644 (file)
@@ -402,7 +402,7 @@ int intel_guc_select_fw(struct intel_guc *guc)
                guc->fw.path = I915_BXT_GUC_UCODE;
                guc->fw.major_ver_wanted = BXT_FW_MAJOR;
                guc->fw.minor_ver_wanted = BXT_FW_MINOR;
-       } else if (IS_KABYLAKE(dev_priv)) {
+       } else if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) {
                guc->fw.path = I915_KBL_GUC_UCODE;
                guc->fw.major_ver_wanted = KBL_FW_MAJOR;
                guc->fw.minor_ver_wanted = KBL_FW_MINOR;