From: Jamie Lokier <jamie@shareable.org>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Linus Torvalds <torvalds@osdl.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] fix remap of shared read only mappings
Date: Fri, 5 Sep 2003 00:40:18 +0100 [thread overview]
Message-ID: <20030904234018.GA778@mail.jlokier.co.uk> (raw)
In-Reply-To: <1062717828.2161.449.camel@mulgrave>
James Bottomley wrote:
> I think you may misunderstand what I mean by coherence: Our problem is
> the VIVT processor caches. Once one mapper does an msync, that data
> must be visible to all the other mappers, so at that point we have to
> flush the cache lines of all the other mappers. On PA, we only need to
> flush one correctly aligned address to get the VIVT cache to flush all
> the others. However, the kernel page cache usually holds an unaligned
> reference so we need to do the extra aligned flush when this data
> changes. If we didn't do the alignment, we'd need to flush every
> virtual address in the current CPU translation for that page.
Ok, I understand why you want matching alignments now. :)
(So that MS_INVALIDATE doesn't have to do anything).
> If you mean PROT_SEM requires immediate coherence without an msync, then
> those semantics would be very tricky to achieve on parisc since we'd
> need the kernel virtual address of the page in the page cache correctly
> aligned as well.
Linux hasn't ever done anything useful with PROT_SEM. As far as I
know, on some other systems PROT_SEM has meant that you mark pages
uncacheable or similar, but only on systems where that is needed to
implement IPC through the shared memory. For some definition IPC.
-- JAmie
next prev parent reply other threads:[~2003-09-04 23:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-04 14:49 James Bottomley
2003-09-04 21:48 ` Jamie Lokier
2003-09-04 22:33 ` James Bottomley
2003-09-04 22:56 ` Jamie Lokier
2003-09-04 23:23 ` James Bottomley
2003-09-04 23:40 ` Jamie Lokier [this message]
2003-09-05 0:49 ` Daniel Phillips
2003-09-05 0:49 ` Linus Torvalds
2003-09-05 1:07 ` Alan Cox
2003-09-05 1:31 ` Daniel Phillips
2003-09-05 4:35 ` Linus Torvalds
2003-09-05 0:52 ` James Bottomley
2003-09-05 1:21 ` Daniel Phillips
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=20030904234018.GA778@mail.jlokier.co.uk \
--to=jamie@shareable.org \
--cc=James.Bottomley@SteelEye.com \
--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®