]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/gvt: Add coffeelake platform definition
authorfred gao <fred.gao@intel.com>
Wed, 9 Jan 2019 01:19:51 +0000 (09:19 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Jan 2019 03:35:02 +0000 (11:35 +0800)
Add D_CFL for CFL platform.

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Signed-off-by: fred gao <fred.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/mmio.h

index b5475c91e2ef1b337ed083aae4c67a1d94fbe2e9..c1170f42b6a1cf9cbdcbe62b6bacbeab05ea19be 100644 (file)
@@ -57,6 +57,8 @@ unsigned long intel_gvt_get_device_type(struct intel_gvt *gvt)
                return D_KBL;
        else if (IS_BROXTON(gvt->dev_priv))
                return D_BXT;
+       else if (IS_COFFEELAKE(gvt->dev_priv))
+               return D_CFL;
 
        return 0;
 }
index 1ffc69eba30e385a21469847c6681f420254d67d..5874f1cb43062cdf39f2818c4b6340ec16c4bb03 100644 (file)
@@ -43,15 +43,16 @@ struct intel_vgpu;
 #define D_SKL  (1 << 1)
 #define D_KBL  (1 << 2)
 #define D_BXT  (1 << 3)
+#define D_CFL  (1 << 4)
 
-#define D_GEN9PLUS     (D_SKL | D_KBL | D_BXT)
-#define D_GEN8PLUS     (D_BDW | D_SKL | D_KBL | D_BXT)
+#define D_GEN9PLUS     (D_SKL | D_KBL | D_BXT | D_CFL)
+#define D_GEN8PLUS     (D_BDW | D_SKL | D_KBL | D_BXT | D_CFL)
 
-#define D_SKL_PLUS     (D_SKL | D_KBL | D_BXT)
-#define D_BDW_PLUS     (D_BDW | D_SKL | D_KBL | D_BXT)
+#define D_SKL_PLUS     (D_SKL | D_KBL | D_BXT | D_CFL)
+#define D_BDW_PLUS     (D_BDW | D_SKL | D_KBL | D_BXT | D_CFL)
 
 #define D_PRE_SKL      (D_BDW)
-#define D_ALL          (D_BDW | D_SKL | D_KBL | D_BXT)
+#define D_ALL          (D_BDW | D_SKL | D_KBL | D_BXT | D_CFL)
 
 typedef int (*gvt_mmio_func)(struct intel_vgpu *, unsigned int, void *,
                             unsigned int);