Hello,

I have a problem with the mmc-over-gpio card driver. When
transferring data in the magnitude of 100k from the card, the oom
killer is invoked, always by events/0. The rest varies, but alway
leads to a reboot caused by the watchdog.

Console log attached. Does anyone have an idea?

Bye,

Joerg


#lsmod
Module                  Size  Used by    Not tainted
gpiommc                 3920  0 
spi_gpio_old            2800  1 gpiommc
spi_bitbang             3088  1 spi_gpio_old
mmc_spi                 7488  0 
mmc_block               7216  0 
mmc_core               39920  2 mmc_spi,mmc_block
nf_nat_tftp              432  0 
nf_conntrack_tftp       2400  1 nf_nat_tftp
nf_nat_irc               864  0 
nf_conntrack_irc        2592  1 nf_nat_irc
nf_nat_ftp              1360  0 
nf_conntrack_ftp        4896  1 nf_nat_ftp
ipt_MASQUERADE           992  1 
iptable_nat             2304  1 
nf_nat                 12544  5 
nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_NOTRACK               672  0 
iptable_raw              656  1 
xt_state                 800  3 
nf_conntrack_ipv4       8352  6 iptable_nat,nf_nat
nf_defrag_ipv4           640  1 nf_conntrack_ipv4
nf_conntrack           44000 12 
nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRACK,xt_state,nf_conntrack_ipv4
ipt_REJECT              2016  2 
xt_TCPMSS               2720  1 
ipt_LOG                 4736  0 
xt_comment               464  0 
xt_multiport            1904  0 
xt_mac                   576  0 
xt_limit                1152  1 
iptable_mangle           992  0 
iptable_filter           768  1 
ip_tables               8800  4 
iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1856  4 
x_tables                9824 13 
ipt_MASQUERADE,iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ext3                   95888  0 
jbd                    44144  1 ext3
crc7                     720  1 mmc_spi
crc_itu_t                992  1 mmc_spi
compat_firmware_class     5920  0 
compat                   432  0 
arc4                     816  0 
aes_generic            31056  0 
deflate                 1328  0 
ecb                     1328  0 
cbc                     2016  0 
switch_robo             4048  0 
switch_core             5200  1 switch_robo
diag                    7504  0 
r...@openwrt:/# more /etr...@openwrt:/# more /etc/conr...@openwrt:/# more 
/etc/config/mmr...@openwrt:/# more /etc/config/mmc_over_gpio 
config 'mmc_over_gpio'
        option 'name' 'default'
        option 'enabled' '1'
        option 'DI_pin' '2'
        option 'DO_pin' '4'
        option 'CLK_pin' '3'
        option 'CS_pin' '7'
        option 'mode' '0'

# /etc/init.d/mmc_over_gpio start
r...@openwrt:/# gpio-mmc: Failed to request mmc_spi module.
mmc_spi spi32766.0: ASSUMING 3.2-3.4 V slot power
mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
gpio-mmc: MMC-Card "default" attached to GPIO pins di=2, do=4, clk=3, cs=7
mmc_spi spi32766.0: can't change chip-select polarity
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card on SPI
mmcblk0: mmc0:0000 SD02G 1.84 GiB 
 mmcblk0: p1

r...@openwrt:/# uname -a
Linux OpenWrt 2.6.32.9 #1 Sun Mar 14 10:24:30 CET 2010 mips GNU/Linux
r...@openwrt:/# free
              total         used         free       shared      buffers
  Mem:        13500        10900         2600            0          944
 Swap:            0            0            0
Total:        13500        10900         2600
# ls -l /dev/mmcblk0*
brw-r--r--    1 root     root     179,   0 Jan  1 19:26 /dev/mmcblk0
brw-r--r--    1 root     root     179,   1 Jan  1 19:26 /dev/mmcblk0p1
r...@openwrt:/# dd if=/dev/mmcblk0 of=/dev/null bs=1k count=64
64+0 records in
64+0 records out
r...@openwrt:/# free
              total         used         free       shared      buffers
  Mem:        13500        12608          892            0          760
 Swap:            0            0            0
Total:        13500        12608          892
# dd if=/dev/mmcblk0 of=/dev/null bs=1k count=80
80+0 records in
80+0 records out
r...@openwrt:/# free
              total         used         free       shared      buffers
  Mem:        13500        12164         1336            0          664
 Swap:            0            0            0
Total:        13500        12164         1336
# dd if=/dev/mmcblk0 of=/dev/null bs=1k count=128
events/0 invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0
Call Trace:[<80024bdc>] 0x80024bdc
[<80009d58>] 0x80009d58
[<80009d58>] 0x80009d58
[<8005fc1c>] 0x8005fc1c
[<8003d3c4>] 0x8003d3c4
[<80060394>] 0x80060394
[<80060438>] 0x80060438
[<800640ec>] 0x800640ec
[<8008e550>] 0x8008e550
[<8008ec48>] 0x8008ec48
[<8001da4c>] 0x8001da4c
[<8019c340>] 0x8019c340
[<808687ec>] 0x808687ec
[<80038934>] 0x80038934
[<80230000>] 0x80230000
[<8003d3c4>] 0x8003d3c4
[<8003875c>] 0x8003875c
[<8003cd08>] 0x8003cd08
[<80082808>] 0x80082808
[<8000f364>] 0x8000f364
[<80230000>] 0x80230000
[<8003cc8c>] 0x8003cc8c
[<8000f354>] 0x8000f354

Mem-Info:
Normal per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:46 inactive_anon:131 isolated_anon:0
 active_file:5 inactive_file:22 isolated_file:0
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:127 slab_reclaimable:107 slab_unreclaimable:2501
 mapped:5 shmem:12 pagetables:33 bounce:0
Normal free:508kB min:508kB low:632kB high:760kB active_anon:184kB 
inactive_anon:524kB active_file:20kB inactive_file:88kB unevictable:0kB 
isolated(anon):0kB isolated(file):0kB present:16256kB mlocked:0kB dirty:0kB 
writeback:0kB mapped:20kB shmem:48kB slab_reclaimable:428kB 
slab_unreclaimable:10004kB kernel_stack:216kB pagetables:132kB unstable:0kB 
bounce:0kB writeback_tmp:0kB pages_scanned:242 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 1*4kB 1*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 
0*2048kB 0*4096kB = 508kB
35 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
4096 pages RAM
721 pages reserved
37 pages shared
3149 pages non-shared
Out of memory: kill process 2976 (dd) score 20 or a child
Killed process 2976 (dd)
klogd invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Call Trace:[<80024bdc>] 0x80024bdc
[<80009d58>] 0x80009d58
[<80009d58>] 0x80009d58
[<8005fc1c>] 0x8005fc1c
[<80060394>] 0x80060394
[<80060438>] 0x80060438
[<800640ec>] 0x800640ec
[<8001e188>] 0x8001e188
[<80066c90>] 0x80066c90
[<8001d364>] 0x8001d364
[<80066e94>] 0x80066e94
[<8005cf8c>] 0x8005cf8c
[<80077fa8>] 0x80077fa8
[<8007aa70>] 0x8007aa70
[<80017710>] 0x80017710
[<8001da04>] 0x8001da04
[<8001c938>] 0x8001c938
[<8000aaac>] 0x8000aaac
[<80025218>] 0x80025218
[<80032218>] 0x80032218
[<8003d3c4>] 0x8003d3c4
[<80001420>] 0x80001420

Mem-Info:
Normal per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:33 inactive_anon:131 isolated_anon:0
 active_file:3 inactive_file:3 isolated_file:0
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:129 slab_reclaimable:106 slab_unreclaimable:2501
 mapped:4 shmem:12 pagetables:30 bounce:0
Normal free:516kB min:508kB low:632kB high:760kB active_anon:132kB 
inactive_anon:524kB active_file:12kB inactive_file:12kB unevictable:0kB 
isolated(anon):0kB isolated(file):0kB present:16256kB mlocked:0kB dirty:0kB 
writeback:0kB mapped:16kB shmem:48kB slab_reclaimable:424kB 
slab_unreclaimable:10004kB kernel_stack:208kB pagetables:120kB unstable:0kB 
bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 1*4kB 2*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 
0*2048kB 0*4096kB = 516kB
18 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
4096 pages RAM
721 pages reserved
10 pages shared
3165 pages non-shared
Out of memory: kill process 3091 (hotplug-call) score 20 or a child
Killed process 3091 (hotplug-call)
hotplug-call: page allocation failure. order:0, mode:0x2005a
Call Trace:[<80024bdc>] 0x80024bdc
[<80009d58>] 0x80009d58
[<80009d58>] 0x80009d58
[<800641a8>] 0x800641a8
[<8005d33c>] 0x8005d33c
[<800eca20>] 0x800eca20
[<80066e04>] 0x80066e04
[<80066e94>] 0x80066e94
[<8005cf8c>] 0x8005cf8c
[<80077fa8>] 0x80077fa8
[<8007aa70>] 0x8007aa70
[<80017710>] 0x80017710
[<80081440>] 0x80081440
[<8001d8f8>] 0x8001d8f8
[<8001da04>] 0x8001da04
[<80230000>] 0x80230000
[<8000aaac>] 0x8000aaac
[<80001420>] 0x80001420

Mem-Info:
Normal per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:33 inactive_anon:131 isolated_anon:0
 active_file:3 inactive_file:3 isolated_file:0
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:127 slab_reclaimable:106 slab_unreclaimable:2503
 mapped:4 shmem:12 pagetables:30 bounce:0
Normal free:508kB min:508kB low:632kB high:760kB active_anon:132kB 
inactive_anon:524kB active_file:12kB inactive_file:12kB unevictable:0kB 
isolated(anon):0kB isolated(file):0kB present:16256kB mlocked:0kB dirty:0kB 
writeback:0kB mapped:16kB shmem:48kB slab_reclaimable:424kB 
slab_unreclaimable:10012kB kernel_stack:208kB pagetables:120kB unstable:0kB 
bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 1*4kB 1*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 
0*2048kB 0*4096kB = 508kB
18 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
4096 pages RAM
721 pages reserved
10 pages shared
3167 pages non-shared
bcm47xx_wdtWatchdog will fire soon!!!


CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Tue Aug  7 17:14:08 CST 2007 (cr...@sw1.rd)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

[rebooting...]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to