* ttm_bo_move_sync_cleanup() issue
@ 2022-04-08 16:01 Matthew Auld
2022-04-09 14:25 ` Christian König
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Auld @ 2022-04-08 16:01 UTC (permalink / raw)
To: Christian König, Christian König, Thomas Hellström
Cc: ML dri-devel
Hi Christian,
We seem to be hitting a new issue in ttm_bo_move_sync_cleanup(), due
to passing a NULL fence, and I guess with some recent changes this is
now blowing up in at least dma_resv_add_fence(). Question is how
should we handle this? Should we add a special case in
ttm_bo_move_accel_cleanup() in case of NULL fence, and then maybe just
always call ttm_bo_wait_free_node() and also skip the add_fence? Or
maybe this case should rather be moved into the driver, and handled
with something along the lines of ttm_bo_move_null()? Any thoughts
here?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ttm_bo_move_sync_cleanup() issue
2022-04-08 16:01 ttm_bo_move_sync_cleanup() issue Matthew Auld
@ 2022-04-09 14:25 ` Christian König
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2022-04-09 14:25 UTC (permalink / raw)
To: Matthew Auld, Christian König, Thomas Hellström; +Cc: ML dri-devel
Am 08.04.22 um 18:01 schrieb Matthew Auld:
> Hi Christian,
>
> We seem to be hitting a new issue in ttm_bo_move_sync_cleanup(), due
> to passing a NULL fence, and I guess with some recent changes this is
> now blowing up in at least dma_resv_add_fence(). Question is how
> should we handle this? Should we add a special case in
> ttm_bo_move_accel_cleanup() in case of NULL fence, and then maybe just
> always call ttm_bo_wait_free_node() and also skip the add_fence? Or
> maybe this case should rather be moved into the driver, and handled
> with something along the lines of ttm_bo_move_null()? Any thoughts
> here?
Ah, crap I though I've catched all cases where somebody wants to insert
a NULL fence into the dma_resv object.
For the short term we should probably do as you suggested, e.g. always
use ttm_bo_wait_free_node().
In the long term we should just completely nuke ttm_bo_wait_free_node()
and directly cleanup properly here.
Regards,
Christian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-09 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08 16:01 ttm_bo_move_sync_cleanup() issue Matthew Auld
2022-04-09 14:25 ` Christian König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).