Am 29.01.19 um 22:54 schrieb Marek
Olšák:
Am 28.01.19 um 22:52
schrieb Marek Olšák:
> From: Marek Olšák <marek.olsak@xxxxxxx>
>
> Normal syncobjs signal when an IB finishes. Start
syncobjs signal when
> an IB starts.
That approach has quite a number of problems (for example
you can't
allocate memory at this point).
Even if I drop this patch, can you describe all the
problems with it? Andrey and I would like to understand
this.
amdgpu_mn_lock(p->mn);
...
r = drm_syncobj_create(&syncobj, 0,...
You can't allocate memory while holding the MN lock, so calling
drm_syncobj_create() here is forbidden.
r = drm_syncobj_get_handle(p->filp,
syncobj,...
This can fail which would result in a syncobj which is never
signaled nor freed.
Regards,
Christian.
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
|
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx