From: Ralf Baechle <ralf@oss.sgi.com>
To: William Jhun <wjhun@ayrnetworks.com>
Cc: "linux-mips@oss.sgi.com"@ayrnetworks.com
Subject: Re: [PATCH] dma_cache_wback, pci DMA cache coherency changes
Date: Wed, 19 Jun 2002 11:39:33 +0200 [thread overview]
Message-ID: <20020619113933.C22048@dea.linux-mips.net> (raw)
In-Reply-To: <20020618100347.A1361@ayrnetworks.com>; from wjhun@ayrnetworks.com on Tue, Jun 18, 2002 at 10:03:47AM -0700
On Tue, Jun 18, 2002 at 10:03:47AM -0700, William Jhun wrote:
> To: "linux-mips@oss.sgi.com"@ayrnetworks.com
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Your mail software is smoking funny stuff ;-)
> This is a re-hash of patches I sent out a while ago which do a more
> optimal cache-flushing for pci_map_*() and pci_dma_sync_*(). It
> basically does an invalidate for PCI_DMA_FROMDEVICE operations and a
> writeback for PCI_DMA_TODEVICE pci_map_* (or writeback/invalidate if
> PCI_DMA_BIDIRECTIONAL). This is similar to the ARM implementation.
>
> Additionally, I filled in the _dma_cache_wback calls in the
> arch/mips/c-*.c to call *_dma_cache_wback_inv* instead of calling
> panic(). Some architectures could probably do a real writeback instead
> of just wback_inv, but this will at least allow code that can use
> writeback-only if available.
>
> Note: I'm not familiar with a lot of these CPUs, but the change should
> be innocuous. Could someone validate/improve these?
Can you try to get rid of all these #ifdef CONFIG_NONCOHERENT_IO things?
We already had too many of them and you're adding even more ...
Basically if dma_cache_wback_inv, dma_cache_wback and dma_cache_inv are
just empty macros as they are if CONFIG_NONCOHERENT_IO is undefined
gcc should be able to optimize most of the #ifdef'd code away.
Please always cc patches you want to submit to me or I might miss them on
the list.
Ralf
next prev parent reply other threads:[~2002-06-19 9:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-18 17:03 [PATCH] dma_cache_wback, pci DMA cache coherency changes William Jhun
2002-06-19 9:39 ` Ralf Baechle [this message]
2002-06-19 18:22 ` [PATCH] include/asm-mips/pci.h William Jhun
2002-06-19 20:38 ` Paul Jackson
2002-06-19 20:38 ` Paul Jackson
2002-06-20 10:25 ` Ralf Baechle
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=20020619113933.C22048@dea.linux-mips.net \
--to=ralf@oss.sgi.com \
--cc="linux-mips@oss.sgi.com"@ayrnetworks.com \
--cc=wjhun@ayrnetworks.com \
/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.