From mboxrd@z Thu Jan 1 00:00:00 1970 From: j.glisse@gmail.com Subject: [RFC] fence, sa allocator, ib pool, semaphore rework Date: Fri, 4 May 2012 18:43:41 -0400 Message-ID: <1336171439-7672-1-git-send-email-j.glisse@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C48B9E7BF for ; Fri, 4 May 2012 15:44:15 -0700 (PDT) Received: by qcsu28 with SMTP id u28so2491993qcs.36 for ; Fri, 04 May 2012 15:44:14 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org First chunk rework fence to use uin64_t, unlike previous patch, we only emit the lower 32 bits with the hw. The upper 32bits is handled in the fence process function where a lenghty comment discuss all the possible things that can go wrong and why it doesn't matter. Then taking advantage of faster fence querying, the sa allocator is simplified and improved. The commit message describe the algorithm used. Taking advantage of that ib & semaphore is simplified to use the same temporary ring related manager. To finish all this, more code is axed and simplified. It all need the previous 17 patches and the various other small fixes. To make it easier i regrouped all the patch needed at : http://people.freedesktop.org/~glisse/reset5/base/ Those patch should hit next soon. The whole patchset can also be found at : http://people.freedesktop.org/~glisse/reset5/ It all got limited testing so far, but i tried hard to make sure that each step is working and thus bisectable. I split the fence rework in 2 part so one can bisect if either the move to 64bits fence or the complete change in fence handling logic is causing trouble. Cheers, Jerome