From: Roman Zippel <zippel@linux-m68k.org>
To: Greg KH <greg@kroah.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Linus Torvalds <torvalds@osdl.org>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: dmapool (was: Re: Linux 2.6.3-rc2)
Date: Fri, 13 Feb 2004 22:27:35 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.58.0402121629210.7855@serv> (raw)
In-Reply-To: <20040210162259.GA26620@kroah.com>
Hi,
On Tue, 10 Feb 2004, Greg KH wrote:
> How about dropping this into your arch if you can't use the
> include/asm-generic/dma-mapping.h file. Or I can add it as
> include/asm-generic/dma-mapping-broken.h and you can repoint your arch
> to use it. Which would be easier for you?
I don't think adding a dma-mapping-broken.h is correct either.
Some m68k scsi drivers are still badly broken, because they use some
archaic API and need an update to something sane.
I think the problem is that DMA-API.txt suggest there is separate API for
coherent/noncoherent (especially dma_alloc_coherent()/
dma_alloc_noncoherent()). DMA-mapping.txt is better here as it
distinguishes between consistent and streaming mappings.
m68k needs something similiar as arm, consistent allocations are mapped
noncachable into the kernel and dma_map* does the necessary cache flushes.
With that you would already get very far and would do the right thing for
most noncoherent archs. This would only would only leave us with some
special cases which had to be fixed to make a driver coherency aware.
So I would suggest to drop e.g. dma_alloc_noncoherent() (parisc seems to
be the only user and it's simply a kmalloc) and merge the rest of
DMA-API.txt with DMA-mapping.txt or make at least consistent with it and
maybe add a bit more information what the functions do in the coherent/
noncoherent case.
bye, Roman
next prev parent reply other threads:[~2004-02-13 21:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-10 3:17 Linux 2.6.3-rc2 Linus Torvalds
2004-02-10 3:53 ` Misshielle Wong
2004-02-10 7:16 ` Jeffrey E. Hundstad
2004-02-10 12:59 ` Geert Uytterhoeven
2004-02-10 14:58 ` Bartlomiej Zolnierkiewicz
2004-02-10 15:18 ` Geert Uytterhoeven
2004-02-10 16:17 ` Bartlomiej Zolnierkiewicz
2004-02-10 17:28 ` Geert Uytterhoeven
2004-02-10 13:31 ` dmapool (was: Re: Linux 2.6.3-rc2) Geert Uytterhoeven
2004-02-10 14:32 ` Geert Uytterhoeven
2004-02-10 14:41 ` Kernel Fault 2.4.20 Ananda Bhattacharya
2004-02-10 14:47 ` Arjan van de Ven
2004-02-10 14:47 ` dmapool (was: Re: Linux 2.6.3-rc2) Russell King
2004-02-10 14:57 ` Geert Uytterhoeven
2004-02-10 14:55 ` Christoph Hellwig
2004-02-10 16:23 ` Greg KH
2004-02-10 16:29 ` Geert Uytterhoeven
2004-02-10 18:14 ` David S. Miller
2004-02-12 9:52 ` Geert Uytterhoeven
2004-02-12 10:25 ` Gerd Knorr
2004-02-13 15:24 ` Geert Uytterhoeven
2004-02-13 21:27 ` Roman Zippel [this message]
2004-02-10 17:00 ` Linux 2.6.3-rc2 (compile stats) John Cherry
-- strict thread matches above, loose matches on Subject: below --
2004-02-13 20:23 dmapool (was: Re: Linux 2.6.3-rc2) David Brownell
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=Pine.LNX.4.58.0402121629210.7855@serv \
--to=zippel@linux-m68k.org \
--cc=geert@linux-m68k.org \
--cc=greg@kroah.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox