From: John Marvin <jsm@udlkern.fc.hp.com>
To: parisc-linux@lists.parisc-linux.org
Cc: davem@redhat.com
Subject: [parisc-linux] Re: RFC: mmap patch
Date: Sat, 8 Mar 2003 20:42:04 -0700 (MST) [thread overview]
Message-ID: <200303090342.UAA17294@udlkern.fc.hp.com> (raw)
>
> Yes, the {copy,clear}_user_page() thing is an optimization for
> handling of cache alias issues wrt. anonymous pages.
>
I already implemented that solution on the parisc port. Well actually
only half :-). I implemented both the copy and clear user page optimizations,
but later on disabled the copy_user_page solution. I can't remember the
exact details of the problem. Based on a comment I wrote, it seems that in
some cases copy_user_page was being used for something that was going to
be executed. I can't remember the exact scenario, since copy_user_page
is only called in copy-on-write situations.
The problem is that since we have split I and D caches, the cache would
need to be flushed anyway so that the instructions could be seen for
execution. So it didn't make any sense to set up the temporary
translation and then flush it anyway; better to just do it through the
kernel translation and flush. I believe this isn't a problem on sparc64
because of the write-through cache.
> The PA-RISC mmap/write bug is something entirely different,
> flush_dcache_page() just isn't doing what it is defined to
> do :-)
Ok. But looking at the sparc64 implementation of flush_dcache_page I
don't see any code to traverse user vma's. Is there some other
architecture specific trick that is being used to flush any user mappings
that are mapped to the same physical address as the kernel address?
John Marvin
jsm@fc.hp.com
next reply other threads:[~2003-03-09 3:42 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-09 3:42 John Marvin [this message]
2003-03-09 21:29 ` [parisc-linux] Re: RFC: mmap patch David S. Miller
-- strict thread matches above, loose matches on Subject: below --
2003-03-09 3:51 John Marvin
2003-03-09 21:31 ` David S. Miller
2003-03-06 14:14 John Marvin
2003-03-06 14:31 ` Matthew Wilcox
2003-03-06 15:31 ` Randolph Chung
2003-03-08 6:30 ` Grant Grundler
2003-03-08 6:29 ` David S. Miller
2003-03-08 17:24 ` Grant Grundler
2003-03-08 19:04 ` David S. Miller
2003-03-08 20:42 ` Grant Grundler
2003-03-08 22:45 ` Matthew Wilcox
2003-03-08 23:00 ` David S. Miller
2003-03-08 23:27 ` Matthew Wilcox
2003-03-08 23:14 ` David S. Miller
2003-03-08 23:31 ` Randolph Chung
2003-03-08 23:15 ` David S. Miller
2003-03-09 2:15 ` Grant Grundler
2003-03-08 23:11 ` Matthew Wilcox
2003-03-08 23:02 ` David S. Miller
2003-03-09 14:42 ` Matthew Wilcox
2003-03-09 21:38 ` David S. Miller
2003-03-10 1:50 ` Matthew Wilcox
2003-03-10 5:18 ` David S. Miller
2003-03-14 13:04 ` Jochen Friedrich
2003-03-14 16:23 ` Grant Grundler
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=200303090342.UAA17294@udlkern.fc.hp.com \
--to=jsm@udlkern.fc.hp.com \
--cc=davem@redhat.com \
--cc=parisc-linux@lists.parisc-linux.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