Re: [PATCH] drm/tegra: Prevent BOs from being freed during job submission

2017-08-13 Thread Dmitry Osipenko
On 11.08.2017 20:59, Thierry Reding wrote: > From: Dmitry Osipenko > > Since DRM IOCTL's are lockless, there is a chance that BOs could be > released while a job submission is in progress. To avoid that, keep the > GEM reference until the job has been pinned, part of which will be to > take anoth

Re: [PATCH] drm/tegra: Prevent BOs from being freed during job submission

2017-08-13 Thread Dmitry Osipenko
On 11.08.2017 21:16, Dmitry Osipenko wrote: > On 11.08.2017 20:59, Thierry Reding wrote: >> From: Dmitry Osipenko >> >> Since DRM IOCTL's are lockless, there is a chance that BOs could be >> released while a job submission is in progress. To avoid that, keep the >> GEM reference until the job has

Re: [PATCH] drm/tegra: Prevent BOs from being freed during job submission

2017-08-12 Thread Dmitry Osipenko
On 11.08.2017 20:59, Thierry Reding wrote: > From: Dmitry Osipenko > > Since DRM IOCTL's are lockless, there is a chance that BOs could be > released while a job submission is in progress. To avoid that, keep the > GEM reference until the job has been pinned, part of which will be to > take anoth

[PATCH] drm/tegra: Prevent BOs from being freed during job submission

2017-08-11 Thread Thierry Reding
From: Dmitry Osipenko Since DRM IOCTL's are lockless, there is a chance that BOs could be released while a job submission is in progress. To avoid that, keep the GEM reference until the job has been pinned, part of which will be to take another reference. Signed-off-by: Dmitry Osipenko Signed-o