[lkml]   [2011]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: GEM-related desktop sluggishness due to linear-time arch_get_unmapped_area_topdown()
    2011/3/29 r6144 <>:
    > 在 2011-03-29二的 10:22 -0400,Jerome Glisse写道:
    >> Killer solution would be to have no mapping and a decent
    >> upload/download ioctl that can take userpage.
    > Doesn't this sound like GEM's read/write interface implemented by e.g.
    > the i915 driver? But if I understand correctly, a mmap-like interface
    > should still be necessary if we want to implement e.g. glMapBuffer()
    > without extra copying.
    > r6144
    glMapBuffer should not be use, it's really not a good way to do stuff.
    Anyway the extra copy might be unavoidable given that sometime the
    front/back might either be in unmappable vram or either have memory
    layout that is not the one specify at buffer creation (this is very
    common when using tiling for instance). So even considering MapBuffer
    or a like function i believe it's a lot better to not allow buffer
    mapping in userspace but provide upload/download hooks that can use
    userpage to avoid as much as possible extra copy.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2011-03-29 17:25    [W:0.022 / U:1.620 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site