All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas@shipmail.org>
To: Jerome Glisse <glisse@freedesktop.org>
Cc: dri-devel@lists.sf.net
Subject: Re: TTM eviction & ghost object
Date: Mon, 11 Jan 2010 19:47:44 +0100	[thread overview]
Message-ID: <4B4B7250.1000703@shipmail.org> (raw)
In-Reply-To: <20100111173709.GA3606@localhost.localdomain>

Jerome Glisse wrote:
> On Tue, Jan 12, 2010 at 01:03:02AM +0800, Donnie Fang wrote:
>   
>> I want to dig much more into this asynchronous memory manager mechanism.
>> Now I have several questions:
>> 1.According to Thamos's suggestion, each memory manager will has a fence
>> object with it, which is delivered from driver's *move* function, my
>> question is what's relationship between the memory manager's fence object
>> and each BO's fence object?
>>     
>
> Thomas's idea was (AFAICT) that the fence associated to the manager should
> always be the lastest one, ie:
> fence *fence_lastest(*fencea, *fenceb)
> And doing
> fence = driver->move(bo, ...) // fence is the same as BO's fence object
> lock
> manager->fence = fence_lastest(fence, manager->fence)
> unlock
>
>   
This is true to some extent. The fence that sits on the manager should 
be the last fence associated with a move out operation from that manager.

This can be extended to allow some granularity: For example instead of 
having one fence per manager, one could have one fence per free region 
in the manager, but with each level of optimization we introduce more 
complexity to the point where noone will be able to understand the code....

/Thomas




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--

      reply	other threads:[~2010-01-11 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20091214181004.GA14802@localhost.localdomain>
     [not found] ` <4B268BFE.5010105@shipmail.org>
     [not found]   ` <b80a278c0912150136v5f00c73cvc110d8828497af19@mail.gmail.com>
     [not found]     ` <4B279993.6070300@shipmail.org>
     [not found]       ` <b80a278c0912150812j6cd84f8ald8940e9d448e0d57@mail.gmail.com>
     [not found]         ` <20091215172629.GG14802@localhost.localdomain>
2010-01-11 17:03           ` TTM eviction & ghost object Donnie Fang
2010-01-11 17:37             ` Jerome Glisse
2010-01-11 18:47               ` Thomas Hellström [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B4B7250.1000703@shipmail.org \
    --to=thomas@shipmail.org \
    --cc=dri-devel@lists.sf.net \
    --cc=glisse@freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.