Re: [PATCH v2 6/6] drm/virtio: move virtio_gpu_cmd_create_resource call into virtio_gpu_object_create

From: Noralf TrÃnnes
Date: Thu Jan 31 2019 - 05:53:55 EST




Den 30.01.2019 10.43, skrev Gerd Hoffmann:
> Specifically call virtio_gpu_object_create() before ttm_bo_init(), so
> the object is already created when ttm calls the
> virtio_gpu_ttm_tt_bind() callback (which in turn calls
> virtio_gpu_object_attach()).
>
> With that in place virtio_gpu_object_attach() will never be called with
> an object which is not yet created, so the extra
> virtio_gpu_object_attach() calls done after
> virtio_gpu_cmd_create_resource() is not needed any more.
>
> Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxxxxx>
> ---

Acked-by: Noralf TrÃnnes <noralf@xxxxxxxxxxx>