Merge tag 'gvt-next-2018-09-04' of https://github.com/intel/gvt-linux into drm-intel...
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 6 Sep 2018 13:51:50 +0000 (16:51 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 6 Sep 2018 13:51:50 +0000 (16:51 +0300)
gvt-next-2018-09-04

- guest context shadow optimization for restore inhibit one (Yan)
- cmd parser optimization (Yan)
- W=1 warning fixes (Zhenyu)

Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
# Conflicts:
# drivers/gpu/drm/i915/gvt/reg.h
From: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180904030154.GG20737@zhen-hp.sh.intel.com
1  2 
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/mmio.c
drivers/gpu/drm/i915/gvt/reg.h
drivers/gpu/drm/i915/gvt/scheduler.c

index 0651e63b25fb7bc8a3c748810f2837a690504c1b,4ba503ef5d2c15725ebae0c65b6325fdeef68c1e..865d80919827390833d0222c7991e571b1ad7133
@@@ -2902,9 -2909,10 +2909,11 @@@ static int init_cmd_table(struct intel_
                if (info) {
                        gvt_err("%s %s duplicated\n", e->info->name,
                                        info->name);
 +                      kfree(e);
                        return -EEXIST;
                }
+               if (cmd_info[i].opcode == OP_MI_NOOP)
+                       mi_noop_index = i;
  
                INIT_HLIST_NODE(&e->hlist);
                add_cmd_entry(gvt, e);
Simple merge
Simple merge
Simple merge
Simple merge
index c9d6cf6cc62345c785a6929b7bc4b4ddfac4a82d,60dcc6bb8425415a0d81e06350800f2c6f46b04c..428d252344f1e4027bc5ffecb12bf7842a1dbe09
  #define _RING_CTL_BUF_SIZE(ctl) (((ctl) & RB_TAIL_SIZE_MASK) + \
                I915_GTT_PAGE_SIZE)
  
 +#define PCH_GPIO_BASE _MMIO(0xc5010)
 +
 +#define PCH_GMBUS0    _MMIO(0xc5100)
 +#define PCH_GMBUS1    _MMIO(0xc5104)
 +#define PCH_GMBUS2    _MMIO(0xc5108)
 +#define PCH_GMBUS3    _MMIO(0xc510c)
 +#define PCH_GMBUS4    _MMIO(0xc5110)
 +#define PCH_GMBUS5    _MMIO(0xc5120)
 +
+ #define TRVATTL3PTRDW(i)      _MMIO(0x4de0 + (i) * 4)
+ #define TRNULLDETCT           _MMIO(0x4de8)
+ #define TRINVTILEDETCT                _MMIO(0x4dec)
+ #define TRVADR                        _MMIO(0x4df0)
+ #define TRTTE                 _MMIO(0x4df4)
+ #define RING_EXCC(base)               _MMIO((base) + 0x28)
+ #define RING_GFX_MODE(base)   _MMIO((base) + 0x29c)
+ #define VF_GUARDBAND          _MMIO(0x83a4)
  #endif
Simple merge