[Top] [All Lists]

Re: shared memory

To: Tom Appermont <>
Subject: Re: shared memory
From: Ralf Baechle <>
Date: Wed, 29 Aug 2001 05:37:48 +0200
In-reply-to: <>; from on Tue, Aug 28, 2001 at 07:17:25PM +0200
References: <>
User-agent: Mutt/1.2.5i
On Tue, Aug 28, 2001 at 07:17:25PM +0200, Tom Appermont wrote:

> While this works as expected on PC, it does not at all work as
> expected on my mips platform (R5231): What is written in user
> space is not immediately visible in kernel space. This is with
> very recent kernel sources (2.4.8) but the same problem exists
> with an older (2.4.5) kernel.
> There have been a few mails about mmap() problems in the last 
> couple of months, but with very little interesting response. Is 
> this a known problem or am I stupidly overlooking something?

This is a different problem - and it's one caused by your code.  You're
missing the necessary cache flushes in the kernel code.  Using
_CACHE_UNCACHED is slow and breaks SMP.


<Prev in Thread] Current Thread [Next in Thread>
  • shared memory, Tom Appermont
    • Re: shared memory, Ralf Baechle <=