Re: [Intel-gfx] [PATCH 5/9] [v5] drm/i915/bdw: Reorganize PT allocations

2014-02-24 Thread Ben Widawsky
On Mon, Feb 24, 2014 at 07:03:12PM +0200, Imre Deak wrote: > On Thu, 2014-02-20 at 11:51 -0800, Ben Widawsky wrote: > > The previous allocation mechanism would get 2 contiguous allocations, > > one for the page directories, and one for the page tables. As each page > > table is 1 page, and there ar

Re: [Intel-gfx] [PATCH 5/9] [v5] drm/i915/bdw: Reorganize PT allocations

2014-02-24 Thread Imre Deak
On Thu, 2014-02-20 at 11:51 -0800, Ben Widawsky wrote: > The previous allocation mechanism would get 2 contiguous allocations, > one for the page directories, and one for the page tables. As each page > table is 1 page, and there are 512 of these per page directory, this > goes to 2MB. An unfriendl

[Intel-gfx] [PATCH 5/9] [v5] drm/i915/bdw: Reorganize PT allocations

2014-02-20 Thread Ben Widawsky
The previous allocation mechanism would get 2 contiguous allocations, one for the page directories, and one for the page tables. As each page table is 1 page, and there are 512 of these per page directory, this goes to 2MB. An unfriendly request at best. Worse still, our HW now supports 4 page dire