[Intel-gfx] [PATCH v2 30/38] drm/i915: Test creation of VMA
Chris Wilson
chris at chris-wilson.co.uk
Wed Feb 1 14:07:18 UTC 2017
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
More information about the Intel-gfx
mailing list