TTM's role in score-based eviction

2013-12-11 Thread Lauri Kasanen
On Wed, 11 Dec 2013 15:46:53 +0100 Thomas Hellstrom wrote: > > I think the kernel just has to trust userspace on this. I can't think > > of any way of not involving userspace, so if somebody really wants to > > hack mesa to gain some fps advantage on a multiseat system, let them ;) > > > > Basica

TTM's role in score-based eviction

2013-12-11 Thread Thomas Hellstrom
On 12/11/2013 12:35 PM, Lauri Kasanen wrote: > On Wed, 11 Dec 2013 12:04:05 +0900 > Michel D?nzer wrote: > >>> Of all the worries that exist, this is a non-issue. Userspace can >>> simply queue a lot of draw calls that take 1 second each through the >>> normal command submission methods, why would

TTM's role in score-based eviction

2013-12-11 Thread Lauri Kasanen
On Wed, 11 Dec 2013 12:04:05 +0900 Michel D?nzer wrote: > > Of all the worries that exist, this is a non-issue. Userspace can > > simply queue a lot of draw calls that take 1 second each through the > > normal command submission methods, why would it need to tweak some > > obscure number to cause

TTM's role in score-based eviction

2013-12-11 Thread Michel Dänzer
On Die, 2013-12-10 at 12:03 +0100, Maarten Lankhorst wrote: > op 10-12-13 01:49, Michel D?nzer schreef: > > On Mon, 2013-12-09 at 23:45 +0100, Marek Ol??k wrote: > >> On Mon, Dec 9, 2013 at 9:30 PM, Lauri Kasanen wrote: > >>> Note that the hotness calculation will be in userspace, as only there >

TTM's role in score-based eviction

2013-12-11 Thread Thomas Hellstrom
On 12/11/2013 08:57 AM, Maarten Lankhorst wrote: > op 11-12-13 04:04, Michel D?nzer schreef: >> On Die, 2013-12-10 at 12:03 +0100, Maarten Lankhorst wrote: >>> op 10-12-13 01:49, Michel D?nzer schreef: On Mon, 2013-12-09 at 23:45 +0100, Marek Ol??k wrote: > On Mon, Dec 9, 2013 at 9:30 PM,

TTM's role in score-based eviction

2013-12-11 Thread Maarten Lankhorst
op 11-12-13 04:04, Michel D?nzer schreef: > On Die, 2013-12-10 at 12:03 +0100, Maarten Lankhorst wrote: >> op 10-12-13 01:49, Michel D?nzer schreef: >>> On Mon, 2013-12-09 at 23:45 +0100, Marek Ol??k wrote: On Mon, Dec 9, 2013 at 9:30 PM, Lauri Kasanen wrote: > Note that the hotness calcu

TTM's role in score-based eviction

2013-12-10 Thread Marek Olšák
On Tue, Dec 10, 2013 at 12:59 PM, Lauri Kasanen wrote: > On Mon, 9 Dec 2013 23:45:12 +0100 > Marek Ol??k wrote: > >> > Note that the hotness calculation will be in userspace, as only there >> > are the necessary counters available. So the finished hotness score >> > will be passed to the kernel,

TTM's role in score-based eviction

2013-12-10 Thread Lauri Kasanen
On Mon, 9 Dec 2013 23:45:12 +0100 Marek Ol??k wrote: > > Note that the hotness calculation will be in userspace, as only there > > are the necessary counters available. So the finished hotness score > > will be passed to the kernel, instead of sending all the necessary data > > there. Ought to be

TTM's role in score-based eviction

2013-12-10 Thread Marek Olšák
On Tue, Dec 10, 2013 at 1:49 AM, Michel D?nzer wrote: > On Mon, 2013-12-09 at 23:45 +0100, Marek Ol??k wrote: >> On Mon, Dec 9, 2013 at 9:30 PM, Lauri Kasanen wrote: >> > >> > Note that the hotness calculation will be in userspace, as only there >> > are the necessary counters available. So the f

TTM's role in score-based eviction

2013-12-10 Thread Maarten Lankhorst
op 10-12-13 01:49, Michel D?nzer schreef: > On Mon, 2013-12-09 at 23:45 +0100, Marek Ol??k wrote: >> On Mon, Dec 9, 2013 at 9:30 PM, Lauri Kasanen wrote: >>> Note that the hotness calculation will be in userspace, as only there >>> are the necessary counters available. So the finished hotness scor

TTM's role in score-based eviction

2013-12-10 Thread Michel Dänzer
On Mon, 2013-12-09 at 23:45 +0100, Marek Ol??k wrote: > On Mon, Dec 9, 2013 at 9:30 PM, Lauri Kasanen wrote: > > > > Note that the hotness calculation will be in userspace, as only there > > are the necessary counters available. So the finished hotness score > > will be passed to the kernel, inste

TTM's role in score-based eviction

2013-12-09 Thread Marek Olšák
On Mon, Dec 9, 2013 at 9:30 PM, Lauri Kasanen wrote: > On Mon, 9 Dec 2013 20:28:21 +0100 > Marek Ol??k wrote: > > Hi, > >> FYI, since the userspace driver sends end-of-frame markers to the >> kernel, the radeon kernel driver knows the current frame number and it >> can also save the frame number

TTM's role in score-based eviction

2013-12-09 Thread Lauri Kasanen
On Mon, 9 Dec 2013 20:28:21 +0100 Marek Ol??k wrote: Hi, > FYI, since the userspace driver sends end-of-frame markers to the > kernel, the radeon kernel driver knows the current frame number and it > can also save the frame number of the last use of each buffer. We > should definitely use that t

TTM's role in score-based eviction

2013-12-09 Thread Thomas Hellstrom
On 12/09/2013 06:28 PM, Daniel Vetter wrote: > On Thu, Dec 05, 2013 at 11:45:03AM -0500, Jerome Glisse wrote: >> On Thu, Dec 05, 2013 at 05:22:54PM +0100, Maarten Lankhorst wrote: >>> op 05-12-13 16:49, Jerome Glisse schreef: On Thu, Dec 05, 2013 at 11:26:46AM +0100, Thomas Hellstrom wrote: >>

TTM's role in score-based eviction

2013-12-09 Thread Marek Olšák
Hi Lauri, FYI, since the userspace driver sends end-of-frame markers to the kernel, the radeon kernel driver knows the current frame number and it can also save the frame number of the last use of each buffer. We should definitely use that to measure the buffer hotness, or just prevent eviction if

TTM's role in score-based eviction

2013-12-09 Thread Daniel Vetter
On Thu, Dec 05, 2013 at 11:45:03AM -0500, Jerome Glisse wrote: > On Thu, Dec 05, 2013 at 05:22:54PM +0100, Maarten Lankhorst wrote: > > op 05-12-13 16:49, Jerome Glisse schreef: > > > On Thu, Dec 05, 2013 at 11:26:46AM +0100, Thomas Hellstrom wrote: > > >> Hi! > > >> > > >> On 12/05/2013 10:36 AM,

TTM's role in score-based eviction

2013-12-05 Thread Maarten Lankhorst
op 05-12-13 16:49, Jerome Glisse schreef: > On Thu, Dec 05, 2013 at 11:26:46AM +0100, Thomas Hellstrom wrote: >> Hi! >> >> On 12/05/2013 10:36 AM, Lauri Kasanen wrote: >>> Hi list, Thomas, >>> >>> I will be investigating the use of a hotness score for each bo, to >>> replace the ping-pong causing L

TTM's role in score-based eviction

2013-12-05 Thread Jerome Glisse
On Thu, Dec 05, 2013 at 05:22:54PM +0100, Maarten Lankhorst wrote: > op 05-12-13 16:49, Jerome Glisse schreef: > > On Thu, Dec 05, 2013 at 11:26:46AM +0100, Thomas Hellstrom wrote: > >> Hi! > >> > >> On 12/05/2013 10:36 AM, Lauri Kasanen wrote: > >>> Hi list, Thomas, > >>> > >>> I will be investiga

TTM's role in score-based eviction

2013-12-05 Thread Lauri Kasanen
Hi list, Thomas, I will be investigating the use of a hotness score for each bo, to replace the ping-pong causing LRU eviction in radeon*. The goal is to put all bos that fit in VRAM there, in order of hotness; a new bo should only be placed there if its hotness score is greater than the lowest V

TTM's role in score-based eviction

2013-12-05 Thread Thomas Hellstrom
Hi! On 12/05/2013 10:36 AM, Lauri Kasanen wrote: > Hi list, Thomas, > > I will be investigating the use of a hotness score for each bo, to > replace the ping-pong causing LRU eviction in radeon*. > > The goal is to put all bos that fit in VRAM there, in order of hotness; > a new bo should only be

TTM's role in score-based eviction

2013-12-05 Thread Jerome Glisse
On Thu, Dec 05, 2013 at 11:26:46AM +0100, Thomas Hellstrom wrote: > Hi! > > On 12/05/2013 10:36 AM, Lauri Kasanen wrote: > >Hi list, Thomas, > > > >I will be investigating the use of a hotness score for each bo, to > >replace the ping-pong causing LRU eviction in radeon*. > > > >The goal is to put