Re: [PATCH] drm/i915/gt: Handle errors for i915_gem_object_trylock

2022-03-03 Thread Hellstrom, Thomas
On Wed, 2022-03-02 at 10:37 +, Tvrtko Ursulin wrote: > > + Thomas, Matt > > On 02/03/2022 06:19, Jiasheng Jiang wrote: > > As the potential failure of the i915_gem_object_trylock(), > > it should be better to check it and return error if fails. > > > > Fixes: 94ce0d65076c ("drm/i915/gt:

Re: [PATCH] drm/i915/gt: Handle errors for i915_gem_object_trylock

2022-03-02 Thread Tvrtko Ursulin
+ Thomas, Matt On 02/03/2022 06:19, Jiasheng Jiang wrote: As the potential failure of the i915_gem_object_trylock(), it should be better to check it and return error if fails. Fixes: 94ce0d65076c ("drm/i915/gt: Setup a default migration context on the GT") Signed-off-by: Jiasheng Jiang ---

[PATCH] drm/i915/gt: Handle errors for i915_gem_object_trylock

2022-03-01 Thread Jiasheng Jiang
As the potential failure of the i915_gem_object_trylock(), it should be better to check it and return error if fails. Fixes: 94ce0d65076c ("drm/i915/gt: Setup a default migration context on the GT") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/i915/gt/selftest_migrate.c | 6 +- 1 file