From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain BERTRAND Subject: Re: [PATCH 08/10] drm/radeon: replace pflip and sw_int counters with atomics Date: Thu, 24 May 2012 16:23:05 +0200 Message-ID: <20120524142305.GC14376@freedom> References: <1337845754-3718-1-git-send-email-deathsimple@vodafone.de> <1337845754-3718-8-git-send-email-deathsimple@vodafone.de> <20120524115909.GA14376@freedom> <20120524124614.GB14376@freedom> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtpauth-vit.online.net (smtpauth-vit.online.net [88.190.253.76]) by gabe.freedesktop.org (Postfix) with ESMTP id 37D9B9E88F for ; Thu, 24 May 2012 07:23:08 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Dave Airlie Cc: "Koenig, Christian" , "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org >>>>> Does the linux API mandates atomic_t to be a 32bits word? >>>> >>>> AFAIK it is, at least for the platforms we care about. >>>> ... >>> >>> Then, the proper course of action would be to add to the linux API, sized >>> atomic operation first, wouldn't it? >> >> No, atomic is fine for this, I think only sparc32 had 24-bit atomics, >> and if you can get sparc32 + a radeon, >> then you can keep both halves. > > And even that is a lie now :-) > > http://lwn.net/Articles/71732/ Ok then: atomic_t means exactly 32 bits! -- Sylvain