- Previous thread: [PATCH] net: Keep interface binding when sending packets with ipi_ifindex = 0
- Next thread: [PATCH] media/omap: adding __init/__exit macros to lcd_drivers
- Threads sorted by date: kernel 200907
Arnd Bergmann wrote:
> On Monday 06 July 2009, Michal Simek wrote:
>
>>> Does this happen on microblaze-mmu or microblaze-nommu, or both?
>>> The mmap code for the two is very different.
>>>
>>>
>> For MMU code.
>>
>
> Could this be a cache-aliasing problem? If your cache is 'virtually-indexed'
> (most architectures are 'physically-indexed'), the kernel may have written
> into different parts of the D-cache than what the user space is reading
> from. If you have a write-through cache, that can explain why you only
> see the stale data at the beginning of the page -- the cache controller
> is still busy writing back the data when you start reading it from
> DRAM through the cache alias.
>
I don't think so because we run that test on Microblaze without caches
and test failed too.
I think that this is sufficient test to tell that the problem is not
relate with caches.
Michal
> If this is your problem, then you need to implement flush_dcache_page()
> and other functions that maintain cache consistency. See
> Documentation/cachetlb.txt and http://www.linuxjournal.com/article/7105
>
> Arnd <
>
--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
> On Monday 06 July 2009, Michal Simek wrote:
>
>>> Does this happen on microblaze-mmu or microblaze-nommu, or both?
>>> The mmap code for the two is very different.
>>>
>>>
>> For MMU code.
>>
>
> Could this be a cache-aliasing problem? If your cache is 'virtually-indexed'
> (most architectures are 'physically-indexed'), the kernel may have written
> into different parts of the D-cache than what the user space is reading
> from. If you have a write-through cache, that can explain why you only
> see the stale data at the beginning of the page -- the cache controller
> is still busy writing back the data when you start reading it from
> DRAM through the cache alias.
>
I don't think so because we run that test on Microblaze without caches
and test failed too.
I think that this is sufficient test to tell that the problem is not
relate with caches.
Michal
> If this is your problem, then you need to implement flush_dcache_page()
> and other functions that maintain cache consistency. See
> Documentation/cachetlb.txt and http://www.linuxjournal.com/article/7105
>
> Arnd <
>
--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Conversations: mmap syscall problem
- mmap syscall problem by Michal Simek on 2009-07-03T12:37:43+00:00
- Re: mmap syscall problem by Arnd Bergmann on 2009-07-03T15:03:35+00:00
- Re: mmap syscall problem by Michal Simek on 2009-07-06T06:32:38+00:00
- Re: mmap syscall problem by Arnd Bergmann on 2009-07-06T08:06:12+00:00
- Re: mmap syscall problem by Michal Simek on 2009-07-06T12:07:31+00:00
- Re: mmap syscall problem by Paul Mundt on 2009-07-06T12:15:34+00:00
- Re: mmap syscall problem by Michal Simek on 2009-07-06T12:54:30+00:00
Related Threads
- Is there any plan for "data propagation from Tree SSA to RTL" to be in GCC mainline? - gcc
- [GENERAL] How to use index in WHERE int = float - pgsql
- Debain Etch hrProcessorLoad pass script - debian
- [ruby-core:19743] [Bug #726] erb references $KCOD - ruby
- Re: is there really no good gui builder - python
- [Bug c/38096] New: optimization regression - gcc
- fortran.dg/default_format_denormal_1.f90 - gcc
- [PHP-DEV] Re: Namespace resolution rules has been changed? - php
- [users] Important details. - openoffice
- insertfrom( ) patch - mysql
- Re: Reinstalling Packages after Rebuilding System with Etch - debian
- [PATCH] Fix unchecked union access in gfc_conv_array_parameter - gcc