From: Ben Widawsky Subject: [PATCH 0/4] Nonblocking maps Date: Thu, 22 Sep 2011 16:27:09 -0700 Message-ID: <1316734033-17228-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 6F8239EF25 for ; Thu, 22 Sep 2011 16:27:05 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org Cc: "Kilarski, Bernard R" , Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org After going back and forth many times, I think Daniel and I have agreed on the solution for non-blocking maps. This new interface adds a new call to map buffers non-blocking if possible. In actuality it may block, but it will track if the buffer needs flushing or not and does the right thing for the use. This relies on a new IOCTL to determine the cache type of the object. With the posted benchmark, there are significant improvements on Gen5 with a very synthetic test meant to test unnecessary blocking on architectures. The test is posted in the series for reference, but isn't actually useful in it's current form other than to prove there is a potential performance improvement. The test shows no performance regression on Gen6. Ben