[Intel-gfx] [PATCH] drm/i915/guc: Defer LRC context unpin or release

kbuild test robot lkp at intel.com
Fri Nov 6 14:12:54 PST 2015


Hi Alex,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on next-20151106]
[cannot apply to v4.3]

url:    https://github.com/0day-ci/linux/commits/yu-dai-intel-com/drm-i915-guc-Defer-LRC-context-unpin-or-release/20151107-060016
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_lrc.c: In function 'lrc_unpin_last_ctx':
>> drivers/gpu/drm/i915/intel_lrc.c:1071:30: warning: unused variable 'ctx_obj' [-Wunused-variable]
     struct drm_i915_gem_object *ctx_obj;
                                 ^

vim +/ctx_obj +1071 drivers/gpu/drm/i915/intel_lrc.c

  1055			rq->ctx->engine[ring->id].pin_count--;
  1056			i915_gem_context_unreference(rq->ctx);
  1057			ring->last_unpin_ctx = NULL;
  1058		}
  1059	
  1060		return ret;
  1061	
  1062	reset_pin_count:
  1063		rq->ctx->engine[ring->id].pin_count = 0;
  1064		return ret;
  1065	}
  1066	
  1067	static void
  1068	lrc_unpin_last_ctx(struct intel_engine_cs *ring)
  1069	{
  1070		struct intel_context *ctx = ring->last_unpin_ctx;
> 1071		struct drm_i915_gem_object *ctx_obj;
  1072	
  1073		if (!ctx)
  1074			return;
  1075	
  1076		i915_gem_object_ggtt_unpin(ctx->engine[ring->id].state);
  1077		intel_unpin_ringbuffer_obj(ctx->engine[ring->id].ringbuf);
  1078	
  1079		WARN_ON(--ctx->engine[ring->id].pin_count);

---
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/octet-stream
Size: 50361 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20151107/086e8170/attachment-0001.obj>


More information about the Intel-gfx mailing list