[lkml]   [2007]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectkmap_atomic in 2.6.20.x

    I am running into some problems with kmap_atomic in my driver.
    My driver copies some pages coming from
    user space to "kernel space kmalloc'ed memory".
    I had this code running from 2.6.5 to 2.6.17 without any problems.
    I have upgraded to 2.6.20.xx and this code fails to kmap_atomic.
    I am running a uni processor 2 GRAM machine, 32bit.

    Basically this is code does:


    .. copy and stuff

    I have also tried KM_USER1 and KM_SKB_SUNRPC_DATA.
    I crash in arch/i386/highmem.c line 42:
    if (!pte_none(*(kmap_pte-idx)))

    To the best of my understanding ( from "see : understand the linux
    kernel" page 310 ) , a different kernel component holds this window. A
    fact which is quite strange in the case of KM_SKB_SUNRPC_DATA. I have
    nothing that uses it.

    1. Why kmap_atomic does not return NULL ?
    2. Why am I failing only in high memory mappings ?

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-06-06 19:05    [W:0.020 / U:8.020 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site