lkml.org 
[lkml]   [2013]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] mm: fix up a spurious page fault whenever it happens
    On 22.05.2013 20:35, Rik van Riel wrote:

    > I'm stumped.
    >
    > If the Geode knows how to flush single TLB entries, it
    > should do that when flush_tlb_page is called.
    >
    > If it does not know, it should throw an invalid instruction
    > exception, and not quietly complete the instruction without
    > doing anything.

    Could it be that the problem is not stale TLB, but a page directory
    that is somehow invalid, e.g. belonging to the previous modprobe
    (or whatever) instead of the running process?

    My patch does load_cr3(next->pgd); so it explicitely loads something
    there.

    > In other words, make the code look like this, for testing:
    >
    > static inline void __native_flush_tlb_single(unsigned long addr)
    > {
    > __flush_tlb();
    > }

    Yup, will try it.

    Thanks
    --
    Stano



    \
     
     \ /
      Last update: 2013-05-22 21:41    [W:6.357 / U:0.636 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site