Re: [PATCH v2 30/38] drm/i915: Test creation of VMA

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

 



On Tue, Jan 31, 2017 at 12:50:20PM +0200, Joonas Lahtinen wrote:
> On to, 2017-01-19 at 11:41 +0000, Chris Wilson wrote:
> > +	for_each_prime_number(num_obj, ULONG_MAX - 1) {
> > +		for (; no < num_obj; no++) {
> > +			obj = i915_gem_object_create_internal(i915, PAGE_SIZE);
> > +			if (IS_ERR(obj))
> > +				goto err;
> > +
> > +			list_add(&obj->batch_pool_link, &objects);
> 
> See below;
> 
> > +		}
> > +
> > +		nc = 0;
> > +		for_each_prime_number(num_ctx, MAX_CONTEXT_HW_ID) {
> > +			for (; nc < num_ctx; nc++) {
> > +				ctx = mock_context(i915, "mock");
> > +				if (!ctx)
> > +					goto err;
> > +
> > +				list_move(&ctx->link, &contexts);
> 
> Why the difference?

I was acquiring ownership of the context from another list.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
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