[PATCH 0/7] drm/ttm: bind/unbind + cleanups

Dave Airlie airlied at gmail.com
Thu Sep 17 04:30:33 UTC 2020


I've pulled a few of the cleaner bits of rework out for review.

The first thing is to move all the tt bind tracking into the driver
so the core doesn't do it all anymore. Once that is done it's possible
to flip over how destroy works so the drivers call some common code
instead of vice-versa.

With those two done the unbind can be completely moved into drivers,
so it happens before the unpopulate in the common code. This removes
a lot of unbinds from the core code (only really one left).

Then a patch to flip some drivers over to direct calling their
bind functions instead of indirect (just a trivial cleanup really)
(bind needs a lot more work).

Then I just refactored out some common patters in the move code,
which should make it easier to pinpoint the codeflow for future
bind changes.

Dave.




More information about the dri-devel mailing list