Re: [Intel-gfx] [PATCH] drm/i915: Add interface to reserve fence registers for vGPU

2017-08-30 Thread Du, Changbin
Hi chris, On Wed, Aug 30, 2017 at 10:27:18AM +0100, Chris Wilson wrote: > Quoting changbin...@intel.com (2017-08-30 09:54:21) > > This patch added two new api to the fence management code: > > - i915_reserve_one_fence() will try to find a free fence from fence_list > >and force-remove vma if

Re: [Intel-gfx] [PATCH] drm/i915: Add interface to reserve fence registers for vGPU

2017-08-30 Thread Chris Wilson
Quoting changbin...@intel.com (2017-08-30 09:54:21) > This patch added two new api to the fence management code: > - i915_reserve_one_fence() will try to find a free fence from fence_list >and force-remove vma if need. > - i915_giveback_reserved_fence() reclaim a reserved fence after vGPU has

[Intel-gfx] [PATCH] drm/i915: Add interface to reserve fence registers for vGPU

2017-08-30 Thread changbin . du
From: Changbin Du In the past, vGPU alloc fence registers by walking through mm.fence_list to find fence which pin_count = 0 and vma is empty. vGPU may not find enough fence registers this way. Because a fence can be bind to vma even though it is not in using. We have found such failure many time