[Intel-gfx] [PATCH v4] drm/i915/gvt: return the correct usable aperture size under gvt environment
kbuild test robot
lkp at intel.com
Fri May 12 00:08:34 UTC 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 38888 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170512/7e70082b/attachment-0001.gz>
More information about the Intel-gfx
mailing list