From: Christoph Hellwig <hch@infradead.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ppc64 iommu rewrite part 2/5
Date: Fri, 27 Feb 2004 12:28:49 +0000 [thread overview]
Message-ID: <20040227122849.A31898@infradead.org> (raw)
In-Reply-To: <1077883862.22213.365.camel@gaston>; from benh@kernel.crashing.org on Fri, Feb 27, 2004 at 11:11:02PM +1100
On Fri, Feb 27, 2004 at 11:11:02PM +1100, Benjamin Herrenschmidt wrote:
> @@ -67,6 +67,14 @@
> * On ia64, we ignore O_SYNC because we cannot tolerate memory attribute aliases.
> */
> return !(efi_mem_attributes(addr) & EFI_MEMORY_WB);
> +#elif defined(CONFIG_PPC64)
> + /* On PPC64, we always do non-cacheable access to the IO hole and
> + * cacheable elsewhere. Cache paradox can checkstop the CPU and
> + * the high_memory heuristic below is wrong on machines with memory
> + * above the IO hole... Ah, and of course, XFree86 doesn't pass
> + * O_SYNC when mapping us to tap IO space. Surprised ?
> + */
> + return !page_is_ram(addr);
> #else
Umm, can't we plaese define a hook in all pors and use it here instead
of one hack per port?
next prev parent reply other threads:[~2004-02-27 12:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-27 12:11 Benjamin Herrenschmidt
2004-02-27 12:28 ` Christoph Hellwig [this message]
2004-02-27 12:22 ` Benjamin Herrenschmidt
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=20040227122849.A31898@infradead.org \
--to=hch@infradead.org \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.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
all inboxes | Powered by JetHome®