Re: [Intel-gfx] [PATCH 4/9] drm/i915: Limit the number of node allocation retries

2014-05-07 Thread Ben Widawsky
On Wed, May 07, 2014 at 09:49:57AM +0200, Daniel Vetter wrote: > On Tue, May 06, 2014 at 10:21:33PM -0700, Ben Widawsky wrote: > > AFAICT, it's impossible to actually infinitely retry the allocation in > > our current code. However, a small oversight on my part, slight bug, or > > future bug, could

Re: [Intel-gfx] [PATCH 4/9] drm/i915: Limit the number of node allocation retries

2014-05-07 Thread Daniel Vetter
On Tue, May 06, 2014 at 10:21:33PM -0700, Ben Widawsky wrote: > AFAICT, it's impossible to actually infinitely retry the allocation in > our current code. However, a small oversight on my part, slight bug, or > future bug, could easily change that. > > To avoid a potential breakage, a simple retry

[Intel-gfx] [PATCH 4/9] drm/i915: Limit the number of node allocation retries

2014-05-06 Thread Ben Widawsky
AFAICT, it's impossible to actually infinitely retry the allocation in our current code. However, a small oversight on my part, slight bug, or future bug, could easily change that. To avoid a potential breakage, a simple retry variable of 16 bits will help us prevent infinitely running. Retry is