Hi,
Changing the order doesn't look hard. Patch attached (untested, have no test hardware). But maybe I missed some detail ...
I came up with something very similar by splitting up nouveau_bo_new() into allocation and initialization steps, so that when necessary the GEM object can be initialized in between. I think that's slightly more flexible and easier to understand than a boolean flag.
Yes, that should work too.
Acked-by: Gerd Hoffmann kraxel@redhat.com
cheers, Gerd