Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754400Ab1C2V5v (ORCPT ); Tue, 29 Mar 2011 17:57:51 -0400 Received: from mail-vx0-f174.google.com ([209.85.220.174]:32917 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752184Ab1C2V5u (ORCPT ); Tue, 29 Mar 2011 17:57:50 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cE0UUTd5qvalWIUSeWjuD2vyyd0PkvEKgB/pQ8CJkMJSLgH/GQcSJRq3gs8x+VECpu fxkOKhr3uZaW4HQSvZJXYdfbKEeTZktsSUR7nPaHxnpxlpW6yUBxg66FtfOYoOfEMGZ8 cJhU6tdFvKHyb64hPt9qO3nqyigYTl/+pRL5s= MIME-Version: 1.0 In-Reply-To: References: <1301310995.5615.92.camel@wangqingchuan> <1301336010.2217.20.camel@workstation> <1301409864.5615.98.camel@wangqingchuan> <1301421664.2151.12.camel@Portable-Work> <20110329202608.GA3454@viiv.ffwll.ch> Date: Wed, 30 Mar 2011 07:57:49 +1000 Message-ID: Subject: Re: GEM-related desktop sluggishness due to linear-time arch_get_unmapped_area_topdown() From: Dave Airlie To: Jerome Glisse Cc: Lucas Stach , r6144 , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Daniel Vetter Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1698 Lines: 32 On Wed, Mar 30, 2011 at 7:04 AM, Jerome Glisse wrote: > On Tue, Mar 29, 2011 at 4:26 PM, Daniel Vetter wrote: >> On Tue, Mar 29, 2011 at 03:45:34PM -0400, Jerome Glisse wrote: >>> Short lived & small bo would definitly doesn't work well for this kind >>> of API, it would all be a function of the ioctl cost. But i am not >>> sure the drawback would be that big, intel tested with pread/pwrite >>> and gived up don't remember why. For the vbo case you describe the >>> scheme i was thinking would be : allocate bo and on buffer data call >>> upload to the allocated bo using the bind user page feature that would >>> mean zero extra copy operation. For the fire forget case of vbo, >>> likely somekind of transient buffer would be more appropriate. >> >> Just to clarify: Uploads to linear buffers are all done with pwrite (due >> to an api foobar, it's not so great for 2d/tiled stuff). It's amazing how >> much faster that is: Switching vbo's from mmpa to pwrite has given a few >> percent more fps in openarena in i915g! As long as the chunk you're gonna >> write fits into L1 cache, it's probably a net win. >> -Daniel > > 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. Dave. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/