lkml.org 
[lkml]   [2011]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: GEM-related desktop sluggishness due to linear-time arch_get_unmapped_area_topdown()
    From
    On Wed, 30 Mar 2011 07:57:49 +1000, Dave Airlie <airlied@gmail.com> wrote:
    > On Wed, Mar 30, 2011 at 7:04 AM, Jerome Glisse <j.glisse@gmail.com> wrote:
    > > What i had in mind was something little bit more advance that pwrite,
    > > somethings that would take width,height,pitch of userpage and would be
    > > able to perform proper blit. But yes pwrite in intel is kind of
    > > limited.
    >
    > TTM has support for userpage binding we just don't use it.

    Yes, and I've been experimenting with the same in GEM to great effect in
    the DDX. The complication remains in managing the CPU synchronisation,
    which suggests that it would only be useful for STREAM_DRAW objects (and
    perhaps the sub-region updates to STATIC_DRAW). (And for readback, if
    retrieving the data were the actual bottleneck.)

    And I did play with a new pread/pwrite interface that did as you suggest,
    binding the user pages and performing a blit. But by the time you make the
    interface asynchronous, it becomes much easier to let the client code
    create the mapping and be fully aware of the barriers.

    And yes I do concur that vma bookkeeping does impose significant overheads
    and I have been removing as many mappings from our drivers as I can; within
    the limitations of the pwrite interface.
    -Chris

    --
    Chris Wilson, Intel Open Source Technology Centre


    \
     
     \ /
      Last update: 2011-03-30 09:35    [W:7.812 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site