Re: [PATCH] drm/i915/gt: Move the [class][inst] lookup for engines onto the GT

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

 



Quoting Chris Wilson (2019-07-14 15:12:20)
> +void intel_engine_add_user(struct intel_engine_cs *engine)
> +{
> +       struct rb_root *root = &engine->i915->uabi_engines;
> +       struct rb_node **p, *parent;
> +
> +       parent = NULL;
> +       p = &root->rb_node;
> +       while (*p) {
> +               struct intel_engine_cs *it;
> +
> +               parent = *p;
> +               it = rb_entry(parent, typeof(*it), uabi_node);
> +
> +               /* All user class:instance identifiers must be unique */
> +               GEM_BUG_ON(it->uabi_class == engine->uabi_class &&
> +                          it->instance == engine->instance);

I'm thinking maybe we should call this uabi_instance.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux