From: Sylvain BERTRAND <sylware@legeek.net>
To: Dave Airlie <airlied@gmail.com>
Cc: "Koenig, Christian" <Christian.Koenig@amd.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH 08/10] drm/radeon: replace pflip and sw_int counters with atomics
Date: Thu, 24 May 2012 16:23:05 +0200 [thread overview]
Message-ID: <20120524142305.GC14376@freedom> (raw)
In-Reply-To: <CAPM=9tzpLQ+x1m1C+s42Jfo_VWbwHsET1Zz+1qFXDpHm_zA9dw@mail.gmail.com>
>>>>> 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
next prev parent reply other threads:[~2012-05-24 14:23 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-24 7:49 [PATCH 01/10] drm/radeon: remove radeon_fence_create Christian König
2012-05-24 7:49 ` [PATCH 02/10] drm/radeon: add infrastructure for advanced ring synchronization Christian König
2012-05-24 15:56 ` j.glisse
2012-05-24 7:49 ` [PATCH 03/10] drm/radeon: rework ring syncing code Christian König
2012-05-24 15:57 ` j.glisse
2012-05-24 7:49 ` [PATCH 04/10] drm/radeon: replace vmram_mutex with mclk_lock v2 Christian König
2012-05-24 15:57 ` j.glisse
2012-05-24 7:49 ` [PATCH 05/10] drm/radeon: remove some unneeded structure members Christian König
2012-05-24 15:58 ` j.glisse
2012-05-24 7:49 ` [PATCH 06/10] drm/radeon: fix & improve ih ring handling Christian König
2012-05-24 15:59 ` j.glisse
2012-05-24 7:49 ` [PATCH 07/10] drm/radeon: apply Murphy's law to the kms irq code Christian König
2012-05-24 15:35 ` Alex Deucher
2012-05-24 15:53 ` j.glisse
2012-05-31 18:15 ` Alex Deucher
2012-05-31 18:39 ` Jerome Glisse
2012-05-31 20:15 ` Christian König
2012-05-24 7:49 ` [PATCH 08/10] drm/radeon: replace pflip and sw_int counters with atomics Christian König
2012-05-24 11:59 ` Sylvain BERTRAND
2012-05-24 12:29 ` Koenig, Christian
2012-05-24 12:46 ` Sylvain BERTRAND
2012-05-24 12:53 ` Dave Airlie
2012-05-24 12:54 ` Dave Airlie
2012-05-24 14:23 ` Sylvain BERTRAND [this message]
2012-05-24 7:49 ` [PATCH 09/10] drm/radeon: replace cs_mutex with vm_mutex Christian König
2012-05-24 7:49 ` [PATCH 10/10] drm/radeon: work around bugs in caymans compute rings Christian König
2012-05-24 15:54 ` [PATCH 01/10] drm/radeon: remove radeon_fence_create j.glisse
-- strict thread matches above, loose matches on Subject: below --
2012-05-31 20:15 Christian König
2012-05-31 20:16 ` [PATCH 08/10] drm/radeon: replace pflip and sw_int counters with atomics Christian König
2012-06-01 6:19 ` Michel Dänzer
2012-06-01 6:30 ` Michel Dänzer
2012-06-01 10:44 ` Christian König
2012-06-01 10:55 ` Michel Dänzer
2012-06-01 11:36 [PATCH 01/10] drm/radeon: remove radeon_fence_create Christian König
2012-06-01 11:36 ` [PATCH 08/10] drm/radeon: replace pflip and sw_int counters with atomics Christian König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120524142305.GC14376@freedom \
--to=sylware@legeek.net \
--cc=Christian.Koenig@amd.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.