lkml.org 
[lkml]   [2010]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch 08/25] GRU - flush gru tlb when driver is loaded
    From: Jack Steiner <steiner@sgi.com>

    Flush the GRU TLB when the GRU driver is loaded. There may be stale
    entries in the TLB if a previous GRU was unloaded since the system
    was last reset.

    Signed-off-by: Jack Steiner <steiner@sgi.com>

    ---
    drivers/misc/sgi-gru/grutlbpurge.c | 2 ++
    1 file changed, 2 insertions(+)

    Index: linux/drivers/misc/sgi-gru/grutlbpurge.c
    ===================================================================
    --- linux.orig/drivers/misc/sgi-gru/grutlbpurge.c 2010-06-09 08:11:42.087537647 -0500
    +++ linux/drivers/misc/sgi-gru/grutlbpurge.c 2010-06-09 08:11:42.891554573 -0500
    @@ -380,4 +380,6 @@ void gru_tgh_flush_init(struct gru_state
    /* first starting TGH index to use for remote purges */
    gru->gs_tgh_first_remote = (cpus + (1 << shift) - 1) >> shift;

    + /* flush the GRU TLB in case there are stale entries present */
    + gru_flush_all_tlb(gru);
    }


    \
     
     \ /
      Last update: 2010-08-26 15:27    [W:7.024 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site