[PATCH 26/49] drm/ttm: add wrapper to get manager from bdev.

Dave Airlie airlied at gmail.com
Fri Jul 31 21:06:54 UTC 2020


On Fri, 31 Jul 2020 at 23:23, Christian König <christian.koenig at amd.com> wrote:
>
> Am 31.07.20 um 06:04 schrieb Dave Airlie:
> > From: Dave Airlie <airlied at redhat.com>
> >
> > This will allow different abstractions later.
>
> Mhm, I'm questioning if this is really worth it and not just overkill.
>
> Running "sed -i 's/&bdev->man/bdev->man/'" on all drivers when we make
> the switch to a pointer should do it as well.
>

It's a good place to hook debugging in if you get something rogue
accessing unregistered bdev->man ptrs as well.

I'd rather not sed the interface later, it's nice to transition things
cleanly between states.

Dave.


More information about the dri-devel mailing list