Re: [PATCH v4] drm/i915/gvt: return the correct usable aperture size under gvt environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Weinan,

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.11 next-20170511]
[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/Weinan-Li/drm-i915-gvt-return-the-correct-usable-aperture-size-under-gvt-environment/20170511-170356
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-rhel (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 >>):

   drivers/gpu//drm/i915/i915_vgpu.c: In function 'intel_vgt_deballoon':
>> drivers/gpu//drm/i915/i915_vgpu.c:113:18: error: invalid type argument of '->' (have 'struct i915_ggtt')
       dev_priv->ggtt->base.reserved -= bl_info.space[i].size;
                     ^~

vim +113 drivers/gpu//drm/i915/i915_vgpu.c

    97	 * @dev_priv: i915 device private data
    98	 *
    99	 * This function is called to deallocate the ballooned-out graphic memory, when
   100	 * driver is unloaded or when ballooning fails.
   101	 */
   102	void intel_vgt_deballoon(struct drm_i915_private *dev_priv)
   103	{
   104		int i;
   105	
   106		if (!intel_vgpu_active(dev_priv))
   107			return;
   108	
   109		DRM_DEBUG("VGT deballoon.\n");
   110	
   111		for (i = 0; i < 4; i++) {
   112			if (bl_info.space[i].allocated) {
 > 113				dev_priv->ggtt->base.reserved -= bl_info.space[i].size;
   114				drm_mm_remove_node(&bl_info.space[i]);
   115			}
   116		}
   117	
   118		memset(&bl_info, 0, sizeof(bl_info));
   119	}
   120	
   121	static int vgt_balloon_space(struct i915_ggtt *ggtt,

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux