[v2,1/6] drm/i915/gvt: Add coffeelake platform definition

Submitted by fred gao on Jan. 9, 2019, 1:19 a.m.

Details

Message ID 20190109011951.2132-1-fred.gao@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Intel GVT devel

Not browsing as part of any series.

Commit Message

fred gao Jan. 9, 2019, 1:19 a.m.
Add D_ICL for CFL platform.

Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Signed-off-by: fred gao <fred.gao@intel.com>
---
 drivers/gpu/drm/i915/gvt/handlers.c |  2 ++
 drivers/gpu/drm/i915/gvt/mmio.h     | 11 ++++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
index b5475c91e2ef..c1170f42b6a1 100644
--- a/drivers/gpu/drm/i915/gvt/handlers.c
+++ b/drivers/gpu/drm/i915/gvt/handlers.c
@@ -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;
 }
diff --git a/drivers/gpu/drm/i915/gvt/mmio.h b/drivers/gpu/drm/i915/gvt/mmio.h
index 1ffc69eba30e..5874f1cb4306 100644
--- a/drivers/gpu/drm/i915/gvt/mmio.h
+++ b/drivers/gpu/drm/i915/gvt/mmio.h
@@ -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);

Comments

On 2019.01.09 09:19:51 +0800, fred gao wrote:
> Add D_ICL for CFL platform.
> 
> Signed-off-by: Fei Jiang <fei.jiang@intel.com>
> Signed-off-by: fred gao <fred.gao@intel.com>
> ---

I think this serie is ready to merge.

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>

Thanks!

>  drivers/gpu/drm/i915/gvt/handlers.c |  2 ++
>  drivers/gpu/drm/i915/gvt/mmio.h     | 11 ++++++-----
>  2 files changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
> index b5475c91e2ef..c1170f42b6a1 100644
> --- a/drivers/gpu/drm/i915/gvt/handlers.c
> +++ b/drivers/gpu/drm/i915/gvt/handlers.c
> @@ -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;
>  }
> diff --git a/drivers/gpu/drm/i915/gvt/mmio.h b/drivers/gpu/drm/i915/gvt/mmio.h
> index 1ffc69eba30e..5874f1cb4306 100644
> --- a/drivers/gpu/drm/i915/gvt/mmio.h
> +++ b/drivers/gpu/drm/i915/gvt/mmio.h
> @@ -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);
> -- 
> 2.17.1
> 
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev