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

2019-01-31 Thread Noralf Trønnes
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

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

2019-01-30 Thread 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