linux-snps-arc.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 0/2] locking/qspinlock: Break qspinlock_types.h header loop
       [not found]             ` <20200730075040.GA21623@gondor.apana.org.au>
@ 2020-08-06  3:37               ` Vineet Gupta
  0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2020-08-06  3:37 UTC (permalink / raw)
  To: Herbert Xu, Andy Shevchenko
  Cc: Petr Mladek, maintainer:X86  ARCHITECTURE (32-BIT AND 64-BIT),
	Stephen Rothwell, Alexey Brodkin, Linux Kernel Mailing List,
	Steven Rostedt (VMware),
	Sergey Senozhatsky, Linux Next Mailing List, Borislav Petkov,
	Waiman Long, Thomas Gleixner, arcml, Ingo Molnar

On 7/30/20 12:50 AM, Herbert Xu wrote:
> On Thu, Jul 30, 2020 at 10:47:16AM +0300, Andy Shevchenko wrote:
>> We may ask Synopsys folks to look at this as well.
>> Vineet, any ideas if we may unify ATOMIC64_INIT() across the architectures?
> I don't think there is any technical difficulty.  The custom
> atomic64_t simply adds an alignment requirement so the initialisor
> remains the same.

Exactly so.

FWIW the alignment requirement is because ARC ABI allows 64-bit data to be 32-bit
aligned provided hardware deals fine with 4 byte aligned for the non-atomic
double-load/store LDD/STD instructions. The 64-bit alignement however is required
for atomic double load/store LLOCKD/SCONDD instructions hence the definition of
ARC atomic64_t

-Vineet
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-06  3:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200729210311.425d0e9b@canb.auug.org.au>
     [not found] ` <20200729114757.GA19388@gondor.apana.org.au>
     [not found]   ` <20200729122807.GA7047@gondor.apana.org.au>
     [not found]     ` <ed62ba67-0e1d-3fee-8c09-7750d5690be5@redhat.com>
     [not found]       ` <CAHp75VdbZu008RcxNhMysoqBs2FSPXWv+au_ROJ7FPVd0uOhtg@mail.gmail.com>
     [not found]         ` <20200730005922.GA9710@gondor.apana.org.au>
     [not found]           ` <CAHp75Vf9Oj5DsGveN32i0A2TqudS+DXfhJYUOzSMJ6VD_A+2Ow@mail.gmail.com>
     [not found]             ` <20200730075040.GA21623@gondor.apana.org.au>
2020-08-06  3:37               ` [PATCH 0/2] locking/qspinlock: Break qspinlock_types.h header loop Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).