This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BUG: Bad page state in process hostname

Other Parts Discussed in Thread: AM1707

We port Davinci-PSP-SDK-03.20.00.12 on an AM1707 board.

Now linux can boot to show the shell, but have many "BUG: Bad page state in process xxx" report.

Can somebody give us some tip?

Thanks a lot!

...

[    2.850000] VFS: Mounted root (nfs filesystem) on device 0:13.

[    2.870000] devtmpfs: mounted

[    2.880000] Freeing init memory: 84K

[    3.470000] BUG: Bad page state in process hostname  pfn:c06cc

[    3.480000] page:c033e980 flags:0000000c count:0 mapcount:1 mapping:c05a6cb4 index:a5

[    3.500000] [<c002232c>] (unwind_backtrace+0x0/0xd0) from [<c00671c4>] (bad_page+0x104/0x138)

[    3.510000] [<c00671c4>] (bad_page+0x104/0x138) from [<c00777d8>] (unmap_vmas+0x3a0/0x638)

[    3.510000] [<c00777d8>] (unmap_vmas+0x3a0/0x638) from [<c007a28c>] (exit_mmap+0xc4/0x204)

[    3.520000] [<c007a28c>] (exit_mmap+0xc4/0x204) from [<c0031694>] (mmput+0x38/0xec)

[    3.520000] [<c0031694>] (mmput+0x38/0xec) from [<c003549c>] (exit_mm+0x11c/0x124)

[    3.530000] [<c003549c>] (exit_mm+0x11c/0x124) from [<c0036b30>] (do_exit+0x18c/0x658)

[    3.530000] [<c0036b30>] (do_exit+0x18c/0x658) from [<c00370b4>] (do_group_exit+0xb8/0xec)

[    3.540000] [<c00370b4>] (do_group_exit+0xb8/0xec) from [<c00370f8>] (sys_exit_group+0x10/0x1c)

[    3.550000] [<c00370f8>] (sys_exit_group+0x10/0x1c) from [<c001dea0>] (ret_fast_syscall+0x0/0x28)

[    3.550000] Disabling lock debugging due to kernel taint

 System initialization...

 Hostname : OMAP3EVM

 Filesystem : v1.0.0

[    3.780000] BUG: Bad page state in process uname  pfn:c06cc

[    3.790000] page:c033e980 flags:0000000c count:0 mapcount:1 mapping:c05a6cb4 index:a5

[    3.810000] [<c002232c>] (unwind_backtrace+0x0/0xd0) from [<c00671c4>] (bad_page+0x104/0x138)

[    3.820000] [<c00671c4>] (bad_page+0x104/0x138) from [<c00777d8>] (unmap_vmas+0x3a0/0x638)

[    3.820000] [<c00777d8>] (unmap_vmas+0x3a0/0x638) from [<c007a28c>] (exit_mmap+0xc4/0x204)

[    3.830000] [<c007a28c>] (exit_mmap+0xc4/0x204) from [<c0031694>] (mmput+0x38/0xec)

[    3.830000] [<c0031694>] (mmput+0x38/0xec) from [<c003549c>] (exit_mm+0x11c/0x124)

[    3.840000] [<c003549c>] (exit_mm+0x11c/0x124) from [<c0036b30>] (do_exit+0x18c/0x658)

[    3.850000] [<c0036b30>] (do_exit+0x18c/0x658) from [<c00370b4>] (do_group_exit+0xb8/0xec)

[    3.850000] [<c00370b4>] (do_group_exit+0xb8/0xec) from [<c00370f8>] (sys_exit_group+0x10/0x1c)

[    3.860000] [<c00370f8>] (sys_exit_group+0x10/0x1c) from [<c001dea0>] (ret_fast_syscall+0x0/0x28)

[    3.860000] BUG: Bad page state in process uname  pfn:c06e0

[    3.870000] page:c033ec00 flags:0000000c count:0 mapcount:1 mapping:c05a6cb4 index:c7

...

/ #

 

 


    • Can you provide more details on the kernel changes and filesystem?
    • Have you enabled this option in the menuconfig:

    [ ] Support for paging of anonymous memory (swap)

    If so, try deselecting the same.

    • Are you including an initramfs into the kernel image?
    • From the log it appears that you are using the filesystem from early Linux PSP releases for OMAP3EVM. Some information on the overall setup will help.
  •  

    Sanjeev, thanks for your help.

    We don't select "Support for paging of anonymouse memory", and don't including an initramfs into the kernel image.

    From TI website (http://processors.wiki.ti.com/index.php?title=DaVinci_(ARM9)_PSP_Releases#AM17x.2FOMAP-L137.2FDA830), our am1707 can only use this old PSP.

    1)we build the kernel use commands as:

    make da830_omapl137_defconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

    ...

    make da830_omapl137_defconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

    2) we use busybox 1.18.4 to build the root file system.

     

    After change linux kernel config as attached, the error change to "Unable to handle kernel paging request at virtual address 3f51f7df".

    ...

    [ 3.000000] Freeing init memory: 92K
    [ 3.170000] Unable to handle kernel paging request at virtual address 3f51f7df
    [ 3.190000] pgd = c05a0000
    ...

     

    But sometime, the same kernel and root fs, can boot to shell. It's very strange.

     

    .config  file. 

    7026.am1707_linux_config.txt

    log file:

    3036.log34.txt

     

    Best Regard!