[Intel-gfx] [PATCH 2/2] drm/i915/gen9: Calculate edram size

2016-01-08 Thread Mika Kuoppala
With gen9+ the edram capabilities are defined so that we can calculate the edram (ellc) size accordingly. Note that there are undefined combinations for some subset of edram capability bits. Return the closest size for undefined indexes. Even if we get it wrong with beginning of future gen enablin

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gen9: Calculate edram size

2016-01-10 Thread Daniel Vetter
On Fri, Jan 08, 2016 at 06:58:45PM +0200, Mika Kuoppala wrote: > With gen9+ the edram capabilities are defined so > that we can calculate the edram (ellc) size accordingly. > > Note that there are undefined combinations for some subset of > edram capability bits. Return the closest size for undefi

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gen9: Calculate edram size

2016-01-11 Thread Chris Wilson
On Mon, Jan 11, 2016 at 08:50:43AM +0100, Daniel Vetter wrote: > On Fri, Jan 08, 2016 at 06:58:45PM +0200, Mika Kuoppala wrote: > > With gen9+ the edram capabilities are defined so > > that we can calculate the edram (ellc) size accordingly. > > > > Note that there are undefined combinations for s