[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Thomas Hellstrom
On 11/29/2012 08:20 PM, Marek Ol??k wrote: > On Thu, Nov 29, 2012 at 10:18 AM, Thomas Hellstrom > wrote: >> On 11/28/2012 10:51 PM, Marek Ol??k wrote: >>> I think the problem with Radeon/TTM is much deeper. Let me demonstrate >>> it on the following example. >>> >>> Unigine Heaven needs about 385

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Marek Olšák
On Thu, Nov 29, 2012 at 10:18 AM, Thomas Hellstrom wrote: > On 11/28/2012 10:51 PM, Marek Ol??k wrote: >> >> I think the problem with Radeon/TTM is much deeper. Let me demonstrate >> it on the following example. >> >> Unigine Heaven needs about 385MB of space for static resources, that's >> only

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Jerome Glisse
On Thu, Nov 29, 2012 at 08:20:17PM +0100, Marek Ol??k wrote: > On Thu, Nov 29, 2012 at 10:18 AM, Thomas Hellstrom > wrote: > > On 11/28/2012 10:51 PM, Marek Ol??k wrote: > >> > >> I think the problem with Radeon/TTM is much deeper. Let me demonstrate > >> it on the following example. > >> > >> Un

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Thomas Hellstrom
On 11/29/2012 08:20 PM, Marek Olšák wrote: On Thu, Nov 29, 2012 at 10:18 AM, Thomas Hellstrom wrote: On 11/28/2012 10:51 PM, Marek Olšák wrote: I think the problem with Radeon/TTM is much deeper. Let me demonstrate it on the following example. Unigine Heaven needs about 385MB of space for sta

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Jerome Glisse
On Thu, Nov 29, 2012 at 08:20:17PM +0100, Marek Olšák wrote: > On Thu, Nov 29, 2012 at 10:18 AM, Thomas Hellstrom > wrote: > > On 11/28/2012 10:51 PM, Marek Olšák wrote: > >> > >> I think the problem with Radeon/TTM is much deeper. Let me demonstrate > >> it on the following example. > >> > >> Un

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Marek Olšák
On Thu, Nov 29, 2012 at 10:18 AM, Thomas Hellstrom wrote: > On 11/28/2012 10:51 PM, Marek Olšák wrote: >> >> I think the problem with Radeon/TTM is much deeper. Let me demonstrate >> it on the following example. >> >> Unigine Heaven needs about 385MB of space for static resources, that's >> only 7

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Thomas Hellstrom
On 11/29/2012 10:28 AM, Michel D?nzer wrote: > On Don, 2012-11-29 at 10:18 +0100, Thomas Hellstrom wrote: >> On 11/28/2012 10:51 PM, Marek Ol??k wrote: >>> I think the problem with Radeon/TTM is much deeper. Let me demonstrate >>> it on the following example. >>> >>> Unigine Heaven needs about 385M

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Michel Dänzer
On Don, 2012-11-29 at 10:18 +0100, Thomas Hellstrom wrote: > On 11/28/2012 10:51 PM, Marek Ol??k wrote: > > I think the problem with Radeon/TTM is much deeper. Let me demonstrate > > it on the following example. > > > > Unigine Heaven needs about 385MB of space for static resources, that's > > onl

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Thomas Hellstrom
On 11/28/2012 10:51 PM, Marek Ol??k wrote: > I think the problem with Radeon/TTM is much deeper. Let me demonstrate > it on the following example. > > Unigine Heaven needs about 385MB of space for static resources, that's > only 75% of my 512MB card. Yet, TTM is not capable of getting all of > that

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Thomas Hellstrom
On 11/29/2012 10:28 AM, Michel Dänzer wrote: On Don, 2012-11-29 at 10:18 +0100, Thomas Hellstrom wrote: On 11/28/2012 10:51 PM, Marek Olšák wrote: I think the problem with Radeon/TTM is much deeper. Let me demonstrate it on the following example. Unigine Heaven needs about 385MB of space for s

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Michel Dänzer
On Don, 2012-11-29 at 10:18 +0100, Thomas Hellstrom wrote: > On 11/28/2012 10:51 PM, Marek Olšák wrote: > > I think the problem with Radeon/TTM is much deeper. Let me demonstrate > > it on the following example. > > > > Unigine Heaven needs about 385MB of space for static resources, that's > > onl

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-29 Thread Thomas Hellstrom
On 11/28/2012 10:51 PM, Marek Olšák wrote: I think the problem with Radeon/TTM is much deeper. Let me demonstrate it on the following example. Unigine Heaven needs about 385MB of space for static resources, that's only 75% of my 512MB card. Yet, TTM is not capable of getting all of that into VRA

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-28 Thread Marek Olšák
I think the problem with Radeon/TTM is much deeper. Let me demonstrate it on the following example. Unigine Heaven needs about 385MB of space for static resources, that's only 75% of my 512MB card. Yet, TTM is not capable of getting all of that into VRAM. If I allow GTT placements, I get 20 fps, w

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-28 Thread Jerome Glisse
On Wed, Nov 28, 2012 at 4:51 PM, Marek Ol??k wrote: > I think the problem with Radeon/TTM is much deeper. Let me demonstrate > it on the following example. > > Unigine Heaven needs about 385MB of space for static resources, that's > only 75% of my 512MB card. Yet, TTM is not capable of getting all

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-28 Thread Jerome Glisse
On Wed, Nov 28, 2012 at 4:51 PM, Marek Olšák wrote: > I think the problem with Radeon/TTM is much deeper. Let me demonstrate > it on the following example. > > Unigine Heaven needs about 385MB of space for static resources, that's > only 75% of my 512MB card. Yet, TTM is not capable of getting all

Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-28 Thread Marek Olšák
I think the problem with Radeon/TTM is much deeper. Let me demonstrate it on the following example. Unigine Heaven needs about 385MB of space for static resources, that's only 75% of my 512MB card. Yet, TTM is not capable of getting all of that into VRAM. If I allow GTT placements, I get 20 fps, w

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-28 Thread j . glisse
So i spend the day looking at ttm and eviction. The first patch i sent earlier is i believe something that should be merged. This patch however is more about discussing if other people are interested in similar mecanism to be share among driver through ttm. I could otherwise just move its logic to

[RFC] drm/ttm: add minimum residency constraint for bo eviction

2012-11-28 Thread j.gli...@gmail.com
So i spend the day looking at ttm and eviction. The first patch i sent earlier is i believe something that should be merged. This patch however is more about discussing if other people are interested in similar mecanism to be share among driver through ttm. I could otherwise just move its logic to