Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1673017

Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations
Date Thu, 22 Jun 2017 22:10:01 +0200
Message-ID <tVgAp-Xd-9@gated-at.bofh.it> (permalink)
References <tVdsS-7hT-17@gated-at.bofh.it> <tVdCA-7lD-69@gated-at.bofh.it>
X-Original-To Logan Gunthorpe <logang@deltatee.com>
Organization Intel Corporation
X-Mailer Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu)
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 17
X-Original-Cc linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-ntb@googlegroups.com, linux-alpha@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-crypto@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Stephen Bates <sbates@raithlin.com>, Richard Henderson <rth@twiddle.net>, Ivan Kokshaysky <ink@jurassic.park.msu.ru>, Matt Turner <mattst88@gmail.com>
X-Original-Date Thu, 22 Jun 2017 21:08:28 +0100
X-Original-Message-ID <20170622210828.27304f6a@alans-desktop>
X-Original-References <20170622164817.25515-1-logang@deltatee.com> <20170622164817.25515-5-logang@deltatee.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1673017

Show key headers only | View raw


On Thu, 22 Jun 2017 10:48:14 -0600
Logan Gunthorpe <logang@deltatee.com> wrote:

> Alpha implements its own io operation and doesn't use the
> common library. Thus to make ioread64 and iowrite64 globally
> available we need to add implementations for alpha.
> 
> For this, we simply use calls that chain two 32-bit operations.
> (mostly because I don't really understand the alpha architecture.)

But this does not do the same thing as an ioread64 with regards to
atomicity or side effects on the device. The same is true of the other
hacks. You either have a real 64bit single read/write from MMIO space or
you don't. You can't fake it.


Alan

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations Logan Gunthorpe <logang@deltatee.com> - 2017-06-22 19:00 +0200
  Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations "Stephen  Bates" <sbates@raithlin.com> - 2017-06-22 19:30 +0200
    Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations Logan Gunthorpe <logang@deltatee.com> - 2017-06-22 19:40 +0200
  Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64  implementations Alan Cox <gnomes@lxorguk.ukuu.org.uk> - 2017-06-22 22:10 +0200
    Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations Logan Gunthorpe <logang@deltatee.com> - 2017-06-22 22:20 +0200
      Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations Arnd Bergmann <arnd@arndb.de> - 2017-06-22 23:10 +0200
        Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations Logan Gunthorpe <logang@deltatee.com> - 2017-06-22 23:20 +0200
  Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations Richard Henderson <rth@twiddle.net> - 2017-06-22 23:30 +0200

csiph-web