* [drm-drm-intel:for-linux-next-fixes 1/1] drivers/gpu/drm/i915/i915_gem_gtt.c:1180:18: error: request for member 'sg' in something not a structure or union
@ 2020-01-20 18:20 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-20 18:20 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3542 bytes --]
tree: git://anongit.freedesktop.org/drm/drm-intel for-linux-next-fixes
head: d8fcca47e1950b1bccd2846cafb0f4e941b5ac2c
commit: d8fcca47e1950b1bccd2846cafb0f4e941b5ac2c [1/1] drm/i915/userptr: fix size calculation
config: x86_64-randconfig-a001-20200120 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
git checkout d8fcca47e1950b1bccd2846cafb0f4e941b5ac2c
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:16:0,
from include/asm-generic/bug.h:19,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/gpu/drm/i915/i915_gem_gtt.c:26:
drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_pte':
>> drivers/gpu/drm/i915/i915_gem_gtt.c:1180:18: error: request for member 'sg' in something not a structure or union
GEM_BUG_ON(iter.sg->length < I915_GTT_PAGE_SIZE);
^
include/linux/build_bug.h:30:63: note: in definition of macro 'BUILD_BUG_ON_INVALID'
#define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
^
drivers/gpu/drm/i915/i915_gem_gtt.c:1180:3: note: in expansion of macro 'GEM_BUG_ON'
GEM_BUG_ON(iter.sg->length < I915_GTT_PAGE_SIZE);
^
vim +/sg +1180 drivers/gpu/drm/i915/i915_gem_gtt.c
1164
1165 static __always_inline u64
1166 gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt,
1167 struct i915_page_directory *pdp,
1168 struct sgt_dma *iter,
1169 u64 idx,
1170 enum i915_cache_level cache_level,
1171 u32 flags)
1172 {
1173 struct i915_page_directory *pd;
1174 const gen8_pte_t pte_encode = gen8_pte_encode(0, cache_level, flags);
1175 gen8_pte_t *vaddr;
1176
1177 pd = i915_pd_entry(pdp, gen8_pd_index(idx, 2));
1178 vaddr = kmap_atomic_px(i915_pt_entry(pd, gen8_pd_index(idx, 1)));
1179 do {
> 1180 GEM_BUG_ON(iter.sg->length < I915_GTT_PAGE_SIZE);
1181 vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma;
1182
1183 iter->dma += I915_GTT_PAGE_SIZE;
1184 if (iter->dma >= iter->max) {
1185 iter->sg = __sg_next(iter->sg);
1186 if (!iter->sg) {
1187 idx = 0;
1188 break;
1189 }
1190
1191 iter->dma = sg_dma_address(iter->sg);
1192 iter->max = iter->dma + iter->sg->length;
1193 }
1194
1195 if (gen8_pd_index(++idx, 0) == 0) {
1196 if (gen8_pd_index(idx, 1) == 0) {
1197 /* Limited by sg length for 3lvl */
1198 if (gen8_pd_index(idx, 2) == 0)
1199 break;
1200
1201 pd = pdp->entry[gen8_pd_index(idx, 2)];
1202 }
1203
1204 kunmap_atomic(vaddr);
1205 vaddr = kmap_atomic_px(i915_pt_entry(pd, gen8_pd_index(idx, 1)));
1206 }
1207 } while (1);
1208 kunmap_atomic(vaddr);
1209
1210 return idx;
1211 }
1212
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38585 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-20 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 18:20 [drm-drm-intel:for-linux-next-fixes 1/1] drivers/gpu/drm/i915/i915_gem_gtt.c:1180:18: error: request for member 'sg' in something not a structure or union kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.