Re: [Intel-gfx] [PATCH] drm/i915: Retry gtt fault when out of fence register

2023-10-16 Thread Ville Syrjälä
On Thu, Oct 12, 2023 at 06:12:26PM +0200, Greg KH wrote: > On Thu, Oct 12, 2023 at 04:53:38PM +0300, Ville Syrjälä wrote: > > On Thu, Oct 12, 2023 at 03:40:08PM +0200, Greg KH wrote: > > > On Thu, Oct 12, 2023 at 04:28:01PM +0300, Ville Syrjala wrote: > > > > From: Ville Syrjälä > > > > > > > >

Re: [Intel-gfx] [PATCH] drm/i915: Retry gtt fault when out of fence register

2023-10-16 Thread Ville Syrjälä
On Fri, Oct 13, 2023 at 12:53:59PM +0200, Andi Shyti wrote: > Hi Ville, > > > If we can't find a free fence register to handle a fault in the GMADR > > range just return VM_FAULT_NOPAGE without populating the PTE so that > > userspace will retry the access and trigger another fault. Eventually >

Re: [Intel-gfx] [PATCH] drm/i915: Retry gtt fault when out of fence register

2023-10-13 Thread Andi Shyti
Hi Ville, > If we can't find a free fence register to handle a fault in the GMADR > range just return VM_FAULT_NOPAGE without populating the PTE so that > userspace will retry the access and trigger another fault. Eventually > we should find a free fence and the fault will get properly handled. >

Re: [Intel-gfx] [PATCH] drm/i915: Retry gtt fault when out of fence register

2023-10-12 Thread Greg KH
On Thu, Oct 12, 2023 at 04:53:38PM +0300, Ville Syrjälä wrote: > On Thu, Oct 12, 2023 at 03:40:08PM +0200, Greg KH wrote: > > On Thu, Oct 12, 2023 at 04:28:01PM +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > If we can't find a free fence register to handle a fault in the GMADR

Re: [Intel-gfx] [PATCH] drm/i915: Retry gtt fault when out of fence register

2023-10-12 Thread Ville Syrjälä
On Thu, Oct 12, 2023 at 03:40:08PM +0200, Greg KH wrote: > On Thu, Oct 12, 2023 at 04:28:01PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > If we can't find a free fence register to handle a fault in the GMADR > > range just return VM_FAULT_NOPAGE without populating the PTE so that

Re: [Intel-gfx] [PATCH] drm/i915: Retry gtt fault when out of fence register

2023-10-12 Thread Greg KH
On Thu, Oct 12, 2023 at 04:28:01PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > If we can't find a free fence register to handle a fault in the GMADR > range just return VM_FAULT_NOPAGE without populating the PTE so that > userspace will retry the access and trigger another fault.

[Intel-gfx] [PATCH] drm/i915: Retry gtt fault when out of fence register

2023-10-12 Thread Ville Syrjala
From: Ville Syrjälä If we can't find a free fence register to handle a fault in the GMADR range just return VM_FAULT_NOPAGE without populating the PTE so that userspace will retry the access and trigger another fault. Eventually we should find a free fence and the fault will get properly