Re: [PATCH 18/23] drm/i915/selftests: huge page tests

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

 



Hi Matthew,

[auto build test ERROR on mmotm/master]
[cannot apply to drm-intel/for-linux-next linus/master v4.13-rc6 next-20170824]
[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/Matthew-Auld/huge-gtt-pages/20170825-005243
base:   git://git.cmpxchg.org/linux-mmotm.git master
config: i386-randconfig-x075-201734 (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=i386 

All errors (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/agp_backend.h:33,
                    from include/drm/drmP.h:35,
                    from drivers/gpu//drm/i915/i915_gem.c:28:
   drivers/gpu//drm/i915/selftests/huge_pages.c: In function 'gpu_write':
>> drivers/gpu//drm/i915/selftests/huge_pages.c:741:14: error: implicit declaration of function 'intel_engine_can_store_dword' [-Werror=implicit-function-declaration]
     GEM_BUG_ON(!intel_engine_can_store_dword(i915->engine[RCS]));
                 ^
   include/linux/compiler.h:175:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
   drivers/gpu//drm/i915/i915_gem.h:31:26: note: in expansion of macro 'BUG_ON'
    #define GEM_BUG_ON(expr) BUG_ON(expr)
                             ^~~~~~
   drivers/gpu//drm/i915/selftests/huge_pages.c:741:2: note: in expansion of macro 'GEM_BUG_ON'
     GEM_BUG_ON(!intel_engine_can_store_dword(i915->engine[RCS]));
     ^~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/intel_engine_can_store_dword +741 drivers/gpu//drm/i915/selftests/huge_pages.c

   729	
   730	static int gpu_write(struct i915_vma *vma,
   731			     struct i915_gem_context *ctx,
   732			     u32 dword,
   733			     u32 value)
   734	{
   735		struct drm_i915_private *i915 = to_i915(vma->obj->base.dev);
   736		struct drm_i915_gem_request *rq;
   737		struct i915_vma *batch;
   738		int flags = 0;
   739		int err;
   740	
 > 741		GEM_BUG_ON(!intel_engine_can_store_dword(i915->engine[RCS]));
   742	
   743		err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
   744		if (err)
   745			return err;
   746	
   747		rq = i915_gem_request_alloc(i915->engine[RCS], ctx);
   748		if (IS_ERR(rq))
   749			return PTR_ERR(rq);
   750	
   751		batch = gpu_write_dw(vma, dword * sizeof(u32), value);
   752		if (IS_ERR(batch)) {
   753			err = PTR_ERR(batch);
   754			goto err_request;
   755		}
   756	
   757		i915_vma_move_to_active(batch, rq, 0);
   758		i915_gem_object_set_active_reference(batch->obj);
   759		i915_vma_unpin(batch);
   760		i915_vma_close(batch);
   761	
   762		err = rq->engine->emit_flush(rq, EMIT_INVALIDATE);
   763		if (err)
   764			goto err_request;
   765	
   766		err = i915_switch_context(rq);
   767		if (err)
   768			goto err_request;
   769	
   770		err = rq->engine->emit_bb_start(rq,
   771				batch->node.start, batch->node.size,
   772				flags);
   773		if (err)
   774			goto err_request;
   775	
   776		i915_vma_move_to_active(vma, rq, 0);
   777	
   778		reservation_object_lock(vma->resv, NULL);
   779		reservation_object_add_excl_fence(vma->resv, &rq->fence);
   780		reservation_object_unlock(vma->resv);
   781	
   782	err_request:
   783		__i915_add_request(rq, err == 0);
   784	
   785		return err;
   786	}
   787	

---
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