From: David Miller <davem@davemloft.net>
To: carlos@systemhalted.org
Cc: airlied@gmail.com, linux-kernel@vger.kernel.org,
libc-alpha@sources.redhat.com
Subject: Re: IO space memcpy support for userspace.
Date: Fri, 05 Dec 2008 12:22:38 -0800 (PST) [thread overview]
Message-ID: <20081205.122238.12303228.davem@davemloft.net> (raw)
In-Reply-To: <119aab440812050932h9173a4bm79273b7ea8fe9a3a@mail.gmail.com>
From: "Carlos O'Donell" <carlos@systemhalted.org>
Date: Fri, 5 Dec 2008 12:32:04 -0500
> On Thu, Dec 4, 2008 at 10:40 PM, Dave Airlie <airlied@gmail.com> wrote:
> > I'm sure this has come up before and I'm sure I'll either wish I never
> > posted this or someone will show me the crisp corpse of the last guy
> > who suggested it.
>
> Do you plan to prevent the compiler from issuing the same sorts of
> instructions that might appear in an optimized memcpy?
>
> Isn't it dangerous to have memory that doesn't behave like normal
> memory, and yet try to treat it like normal memory?
>
> This mismatch of abstractions is a warning that must not be ignored.
This is basically my opinion as well.
You'll pretty much need to surround accesses to these places with
accessor macros that do whatever is necessary on a given platform and
avoids the "dangerous" instructions in cases like IA64.
Treating them like normal memory isn't going to work on all systems.
BTW, the sunffb xorg driver has special code for "graphics copy"
which is essentially just a scanline by scanline GCOPY using the
MMX like stuff sparc64 has. It also is mindful of avoiding access
patterns that are known to lock up that chip :)
That's just an aside, since sunffb doesn't provide any offscreen
pixmap memory and thus shouldn't be susceptible to this problem being
discussed here.
next prev parent reply other threads:[~2008-12-05 20:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 3:40 Dave Airlie
2008-12-05 17:32 ` Carlos O'Donell
2008-12-05 20:22 ` David Miller [this message]
2008-12-06 6:34 ` Dave Airlie
2008-12-06 16:07 ` Carlos O'Donell
2008-12-08 5:24 ` Robert Hancock
2008-12-05 20:27 ` Roland McGrath
2008-12-06 6:30 ` Dave Airlie
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=20081205.122238.12303228.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=airlied@gmail.com \
--cc=carlos@systemhalted.org \
--cc=libc-alpha@sources.redhat.com \
--cc=linux-kernel@vger.kernel.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
Powered by JetHome