All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] mips: Add arch/mips/include/asm/atomic.h
Date: Thu, 9 Aug 2018 11:27:22 +0200	[thread overview]
Message-ID: <4979be06-1c95-f990-3fc0-516205ad9cbb@denx.de> (raw)
In-Reply-To: <CACUy__U-33xpwD8NhKajscqbnFTqpFy0tMuvA4-rojaS7BTWzQ@mail.gmail.com>

Hi Daniel,

On 07.08.2018 16:51, Daniel Schwierzeck wrote:
> 2018-08-06 17:11 GMT+02:00 Stefan Roese <sr@denx.de>:
>> This is needed for the UBIFS support. The file is a copy of
>> arch/xtensa/include/asm/atomic.h
> 
> could you try to import this file from Linux MIPS? Then we would have
> optimized functions.

Hmmm, looking at this file and the necessary headers that are not
present in U-Boot right now, this seems a bit too much in my taste.
Especially since U-Boot is not an OS and does not seed to support
all kind of protection against other threads / CPUs.

> Other way would be to import include/asm-generic/atomic.h from Linux
> so that all architectures
> in U-Boot could at least use a generic version.

I also took a quick glance at this and moving away from the
asm/atomic.h inclusion in U-Boot seems quite intrusive right now. I
would prefer to stay with this "simple" implementation for MIPS and
perhaps move to using this one (or a similar one) at a later time,
not being in the scope of this MIPS SoC addition.

What do you think? Would this be acceptable?

Thanks,
Stefan

  reply	other threads:[~2018-08-09  9:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-06 15:11 [U-Boot] [PATCH 1/4] mips: Add basic MediaTek MT7620/88 support Stefan Roese
2018-08-06 15:11 ` [U-Boot] [PATCH 2/4] mips: Add arch/mips/include/asm/atomic.h Stefan Roese
2018-08-07 14:51   ` Daniel Schwierzeck
2018-08-09  9:27     ` Stefan Roese [this message]
2018-08-09 10:20       ` Daniel Schwierzeck
2018-08-06 15:11 ` [U-Boot] [PATCH 3/4] mips: Add LinkIt Smart 7688 support Stefan Roese
2018-08-06 15:11 ` [U-Boot] [PATCH 4/4] mips: Add Gardena Smart-Gateway board support Stefan Roese
2018-08-07 15:44 ` [U-Boot] [PATCH 1/4] mips: Add basic MediaTek MT7620/88 support Daniel Schwierzeck
2018-08-09 10:46   ` Stefan Roese
2018-08-09 13:28     ` Daniel Schwierzeck
2018-08-09 14:22       ` Stefan Roese
2018-08-11 22:52         ` Daniel Schwierzeck
2018-08-15  6:22           ` Stefan Roese

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=4979be06-1c95-f990-3fc0-516205ad9cbb@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /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.