drm/i915/gvt: fix missing init param.primary
authorDu, Changbin <changbin.du@intel.com>
Mon, 21 Nov 2016 09:08:14 +0000 (17:08 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 23 Nov 2016 02:13:40 +0000 (10:13 +0800)
Initiate param.primary to 1. We should be primary currently.

Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/vgpu.c

index 4f64845d8a4c1fd9af8133157dd624f1268258fe..536d2b9d577732f57a1775f54bdb4a7bce8a7e39 100644 (file)
@@ -378,6 +378,7 @@ struct intel_vgpu *intel_gvt_create_vgpu(struct intel_gvt *gvt,
        struct intel_vgpu *vgpu;
 
        param.handle = 0;
+       param.primary = 1;
        param.low_gm_sz = type->low_gm_size;
        param.high_gm_sz = type->high_gm_size;
        param.fence_sz = type->fence;