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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to