[Intel-gfx] [PATCH v6] drm/i915/gvt: Fix guest i915 48bit full ppgtt blocking issue

kbuild test robot lkp at intel.com
Wed Jun 21 21:17:35 UTC 2017


Hi Tina,

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.12-rc6 next-20170621]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Tina-Zhang/drm-i915-gvt-Fix-guest-i915-48bit-full-ppgtt-blocking-issue/20170621-233658
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a0-06220349 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/gvt/gvt.h:38:0,
                    from drivers/gpu/drm/i915/gvt/vgpu.c:35:
   drivers/gpu/drm/i915/gvt/vgpu.c: In function 'populate_pvinfo_page':
   include/linux/compiler-gcc.h:161:2: error: 'struct vgt_if' has no member named 'vgt_caps'; did you mean 'vgt_id'?
     __builtin_offsetof(a, b)
     ^
   drivers/gpu/drm/i915/gvt/mmio.h:75:9: note: in definition of macro 'INTEL_GVT_MMIO_OFFSET'
     typeof(reg) __reg = reg; \
            ^~~
   drivers/gpu/drm/i915/gvt/vgpu.c:46:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(vgt_caps)) = VGT_CAPS_FULL_PPGTT_48BIT;
     ^~~~~~~~~
   drivers/gpu/drm/i915/i915_pvinfo.h:103:2: note: in expansion of macro '_MMIO'
     _MMIO((VGT_PVINFO_PAGE + offsetof(struct vgt_if, x)))
     ^~~~~
   include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof'
    #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_pvinfo.h:103:27: note: in expansion of macro 'offsetof'
     _MMIO((VGT_PVINFO_PAGE + offsetof(struct vgt_if, x)))
                              ^~~~~~~~
   drivers/gpu/drm/i915/gvt/vgpu.c:46:18: note: in expansion of macro 'vgtif_reg'
     vgpu_vreg(vgpu, vgtif_reg(vgt_caps)) = VGT_CAPS_FULL_PPGTT_48BIT;
                     ^~~~~~~~~
   include/linux/compiler-gcc.h:161:2: error: 'struct vgt_if' has no member named 'vgt_caps'; did you mean 'vgt_id'?
     __builtin_offsetof(a, b)
     ^
   drivers/gpu/drm/i915/gvt/mmio.h:75:22: note: in definition of macro 'INTEL_GVT_MMIO_OFFSET'
     typeof(reg) __reg = reg; \
                         ^~~
   drivers/gpu/drm/i915/gvt/vgpu.c:46:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(vgt_caps)) = VGT_CAPS_FULL_PPGTT_48BIT;
     ^~~~~~~~~
   drivers/gpu/drm/i915/i915_pvinfo.h:103:2: note: in expansion of macro '_MMIO'
     _MMIO((VGT_PVINFO_PAGE + offsetof(struct vgt_if, x)))
     ^~~~~
   include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof'
    #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_pvinfo.h:103:27: note: in expansion of macro 'offsetof'
     _MMIO((VGT_PVINFO_PAGE + offsetof(struct vgt_if, x)))
                              ^~~~~~~~
   drivers/gpu/drm/i915/gvt/vgpu.c:46:18: note: in expansion of macro 'vgtif_reg'
     vgpu_vreg(vgpu, vgtif_reg(vgt_caps)) = VGT_CAPS_FULL_PPGTT_48BIT;
                     ^~~~~~~~~
>> drivers/gpu/drm/i915/gvt/vgpu.c:46:41: error: 'VGT_CAPS_FULL_PPGTT_48BIT' undeclared (first use in this function)
     vgpu_vreg(vgpu, vgtif_reg(vgt_caps)) = VGT_CAPS_FULL_PPGTT_48BIT;
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/vgpu.c:46:41: note: each undeclared identifier is reported only once for each function it appears in

vim +/VGT_CAPS_FULL_PPGTT_48BIT +46 drivers/gpu/drm/i915/gvt/vgpu.c

    40		/* setup the ballooning information */
    41		vgpu_vreg64(vgpu, vgtif_reg(magic)) = VGT_MAGIC;
    42		vgpu_vreg(vgpu, vgtif_reg(version_major)) = 1;
    43		vgpu_vreg(vgpu, vgtif_reg(version_minor)) = 0;
    44		vgpu_vreg(vgpu, vgtif_reg(display_ready)) = 0;
    45		vgpu_vreg(vgpu, vgtif_reg(vgt_id)) = vgpu->id;
  > 46		vgpu_vreg(vgpu, vgtif_reg(vgt_caps)) = VGT_CAPS_FULL_PPGTT_48BIT;
    47		vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base)) =
    48			vgpu_aperture_gmadr_base(vgpu);
    49		vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.size)) =

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 28208 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170622/5d6a9f03/attachment-0001.gz>


More information about the intel-gvt-dev mailing list