All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Finn Thain <fthain@telegraphics.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Jeff Garzik <jgarzik@pobox.com>,
	Linux/m68k <linux-m68k@vger.kernel.org>,
	Linux/m68k on Mac <linux-mac68k@mac.linux-m68k.org>,
	Linux MIPS <linux-mips@vger.kernel.org>,
	Linux kernel <linux-kernel@vger.kernel.org>,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: Re: [PATCH] Jazzsonic driver updates
Date: Wed, 15 Jun 2005 12:41:59 +0100	[thread overview]
Message-ID: <20050615114158.GA9411@linux-mips.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0506121454410.1470@loopy.telegraphics.com.au>

On Sun, Jun 12, 2005 at 04:05:30PM +1000, Finn Thain wrote:

> > Oh funny.  vdma_alloc() was created 10 years ago as an internal API for
> > the Jazz machines.  Didn't realize m68k had cloned it :-)  If anything
> > it seems this should be converted to the modern DMA API.
> 
> I've just started merging my Mac sonic work into 2.6.12-rc6. m68k doesn't 
> yet implement the modern DMA API, but it is easy to fake it for a while 
> for macsonic.c. So I don't mind converting macsonic, jazzsonic and the 
> shared sonic driver core to the new API.
> 
> But, I knowing nothing about the Jazz DMA controller. I need some help 
> from the MIPS people:

It's a while since I last touched that machine, so remember this is from
10 year old memory ...

The Jazz DMA hardware is an MMU that translates virtual DMA to physical
addresses.  It's virtual DMA address space is 16MB in size, it's page
size is 4kB.  That's a set of capabilities that nicely translates into
the DMA API.

> Would I be right to say that vdma_{alloc,free}() can be changed to 
> dma_{,un}map_single? The other Jazz specific routine that sonic uses is 
> vdma_log2phys, and I don't know if that has a better alternative.

The use of that call should simply be eleminated entirely.  DMA API
functions such as dma_alloc_coherent or dma_map_single will return a
dma_handle which along with the virtual address returned is everything
ever needed to program a DMA engine.

  Ralf

  reply	other threads:[~2005-06-15 11:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200503070210.j272ARii023023@hera.kernel.org>
2005-03-22 17:13 ` [PATCH] Jazzsonic driver updates Geert Uytterhoeven
2005-03-23  2:30   ` [PATCH] " Finn Thain
2005-03-23 10:01   ` Ralf Baechle
2005-03-23 10:47     ` Finn Thain
2005-06-12  6:05     ` Finn Thain
2005-06-15 11:41       ` Ralf Baechle [this message]
2005-06-15 14:02         ` Finn Thain
2005-06-15 14:27           ` Ralf Baechle
2005-06-15 16:53             ` Finn Thain
2005-06-15 17:45               ` Finn Thain
2005-06-16  9:22                 ` Ralf Baechle
2005-06-16 12:14                   ` Finn Thain
2005-06-26 17:27                     ` [PATCH] macsonic/jazzsonic drivers update Finn Thain
2005-06-26 17:56                       ` Jeff Garzik
2005-06-27 12:59                         ` Finn Thain
2005-07-12 15:31                         ` [PATCH] macsonic/jazzsonic drivers update (part 2) Finn Thain
2005-08-20  4:30                           ` Finn Thain
2005-08-20  4:50                             ` Jeff Garzik
2005-08-20  5:53                               ` [PATCH 1/1 RESEND] macsonic/jazzsonic network drivers update Finn Thain
2005-08-23  5:32                                 ` Jeff Garzik

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=20050615114158.GA9411@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=fthain@telegraphics.com.au \
    --cc=geert@linux-m68k.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=linux-mac68k@mac.linux-m68k.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=tsbogend@alpha.franken.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.