Re: [PATCH 2/2] drm/sched: fix dropping the last fence ref

2021-11-16 Thread Christian König
Am 16.11.21 um 19:07 schrieb Rob Clark: On Tue, Nov 16, 2021 at 8:37 AM Daniel Vetter wrote: On Tue, Nov 16, 2021 at 10:25:19AM +0100, Christian König wrote: We need to grab another ref before trying to add the fence to the sched job and not after. Signed-off-by: Christian König Reviewed

Re: [PATCH 2/2] drm/sched: fix dropping the last fence ref

2021-11-16 Thread Rob Clark
On Tue, Nov 16, 2021 at 8:37 AM Daniel Vetter wrote: > > On Tue, Nov 16, 2021 at 10:25:19AM +0100, Christian König wrote: > > We need to grab another ref before trying to add the fence to the sched > > job and not after. > > > > Signed-off-by: Christian König > > Reviewed-by: Daniel Vetter > > I

Re: [PATCH 2/2] drm/sched: fix dropping the last fence ref

2021-11-16 Thread Daniel Vetter
On Tue, Nov 16, 2021 at 10:25:19AM +0100, Christian König wrote: > We need to grab another ref before trying to add the fence to the sched > job and not after. > > Signed-off-by: Christian König Reviewed-by: Daniel Vetter I wondered first why this goes boom, but then I realized that in some ca

[PATCH 2/2] drm/sched: fix dropping the last fence ref

2021-11-16 Thread Christian König
We need to grab another ref before trying to add the fence to the sched job and not after. Signed-off-by: Christian König --- drivers/gpu/drm/scheduler/sched_main.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gp