Hello, I got a few responses to this original problem... thanks! I've
compiled the abyss.o and tms380 token ring drivers into the kernel as
opposed to running them as modules. Yesterday the system crashed again and
I copied down all the Oops stuff and ran it through ksymoops... I'm
including the output from that in this e-mail. I hope it is useful to
the maintainer of the tms380 code and maybe the abyss code!

BTW, Adam Fritzler is listed as the tms380 maintainer,
but his e-mail address, listed as [EMAIL PROTECTED], is failing and the URL
listed -- http://www.auk.cx/tms380tr/ -- also fails.

Output from ksymoops, all other information in the original e-mail still
applies:

[root@ohdrouter /root]# ksymoops oops.7.2.2001
ksymoops 0.7c on i686 2.4.5.  Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.5/ (default)
     -m /usr/src/linux/System.map (default)

Warning: You did not tell me where to find symbol information.  I will
assume that the log matches the kernel and modules that are running
right now and I'll use the default options above for symbol resolution.
If the current kernel and/or modules do not match the log, you can get
more accurate output by telling me the kernel version and where to find
map, modules, ksyms etc.  ksymoops -h explains the options.

Warning (compare_maps): ksyms_base symbol
__VERSIONED_SYMBOL(shmem_file_setup) not found in System.map.  Ignoring
ksyms_base entry
Oops: 0002
CPU: 0
EIP: 0010:[<c01afd48>]
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010046
eax: 00000000 ebx: c391ede0 ecx: 00000246 edx: c02a7080
esi: 00000292 edi: 00000000 ebp: c000b5c8 esp: c0245f10
ds: 0018 es: 0018 ss: 0018
Process swapper (pid:0, stackpage=c0245000)
Stack: c391ede0 c0292010 00000001 c019092d c391ede0 c391ede0 c114a40
0000000a
c114a400 0000000a c0008000 0000000a 00000040 c0008000 c018f124 c114a400
c114a400 c1128b40 04000001 0000000c c0245fac c0107dad 0000000c c114a400
Call Trace: [<c019092d>] [<c018f124>] [<c0107dad>] [<c0107f17>]
[<c0105170>]
[<c0105170>] [<c0106b98>] [<c0105170>] [<c0105170>] [<c0100018>]
[<c0105193>]
[<c01051f4>] [<c0105000>] [<c0100197>]
Code: ff 80 24 00 00 00 82 42 0c 89 43 08 ff 40 08 8b 50 04 89 03

>>EIP; c01afd48 <netif_rx+44/ec>   <=====
Trace; c019092d <tms380tr_rcv_status_irq+1d5/3c8>
Trace; c018f124 <tms380tr_interrupt+7c/150>
Trace; c0107dad <handle_IRQ_event+31/5c>
Trace; c0107f17 <do_IRQ+6b/ac>
Trace; c0105170 <default_idle+0/28>
Trace; c0105170 <default_idle+0/28>
Trace; c0106b98 <ret_from_intr+0/20>
Trace; c0105170 <default_idle+0/28>
Trace; c0105170 <default_idle+0/28>
Trace; c0100018 <startup_32+18/a5>
Trace; c0105193 <default_idle+23/28>
Trace; c01051f4 <cpu_idle+3c/50>
Trace; c0105000 <prepare_namespace+0/8>
Trace; c0100197 <L6+0/2>
Code;  c01afd48 <netif_rx+44/ec>
00000000 <_EIP>:
Code;  c01afd48 <netif_rx+44/ec>   <=====
   0:   ff 80 24 00 00 00         incl   0x24(%eax)   <=====
Code;  c01afd4e <netif_rx+4a/ec>
   6:   82                        (bad)
Code;  c01afd4f <netif_rx+4b/ec>
   7:   42                        inc    %edx
Code;  c01afd50 <netif_rx+4c/ec>
   8:   0c 89                     or     $0x89,%al
Code;  c01afd52 <netif_rx+4e/ec>
   a:   43                        inc    %ebx
Code;  c01afd53 <netif_rx+4f/ec>
   b:   08 ff                     or     %bh,%bh
Code;  c01afd55 <netif_rx+51/ec>
   d:   40                        inc    %eax
Code;  c01afd56 <netif_rx+52/ec>
   e:   08 8b 50 04 89 03         or     %cl,0x3890450(%ebx)


2 warnings issued.  Results may not be reliable.

I hope this is useful to the maintainer(s)!

Please let me know if there is anything I can do to help.

Thank you,
  Brian


On Tue, 19 Jun 2001, Brian McEntire wrote:

> [1.] memory allocation error with token ring tms380/abyss modules
>
> [2.] a memory allocation error causes the system to go into an infinite
> loop about once every week or two. This most recent time was 8 days, to
> the hour from the last crash. Everything on the system stops working and I
> need to hit the reset button to reboot the system. At crash time, the
> following message scrolls up the screen:
>
> __alloc_pages: 1-order allocation failed
>
> * Actually, I did some searching on the web and found this problem
> discussed but not fixed. According to one e-mail, I patched
> mm/page_alloc.c and rebuilt the kernel so that I could get the following
> _slightly_ more informative message after the crash:
>
> __alloc_pages: 1-order allocation failed from c01290e8
>
> The modification I made to mm/page_alloc.c is:
> change the line:
>
> printk(KERN_ERR "__alloc_pages: %lu-order allocation failed.\n", order);
>
> to:
>
> printk(KERN_ERR "__alloc_pages: %lu-order allocation failed from %p\n",
>   order, __builtin_return_address(0));
>
> Then I'm supposed to be able to look up the hex code from the error
> message in the /boot/System.map (it is the correct one for my kernel) and
> find out what function is causing the problem.
>
> But, I don't find c01290e8 in my System.map. Two hex addresses close to it
> are found there:
>
> c01290d4 T __get_free_pages
> c01290f4 T get_zeroed_page
>
> Yup, looks like it has something to do with memory allocation alright ;-)
>
> Everytime this crash occurs, it is the same hex address given in the error
> message. I can't cause this error to occur. The system is running as a
> basic router and has two Netgear FA310TX ethernet cards in it and one
> Madge Smart 16/4 PCI Ringnode Mk2 token ring card in it.
>
> The system logs don't give any indication that the crash is coming or any
> information about it, not even the 1-order allocation error is listed.
> One exception (maybe):
>
> I get the following messages showing up occasionally in /var/log/messages
> on weekdays (when I expect network usage to be higher than on weekends).
> But these don't seem to come in any higher frequency leading up to the
> crash.
>
> Jun 19 15:10:23 ohdrouter kernel: Cancel tx (C04D0068h).
> Jun 19 15:10:23 ohdrouter kernel: Cancel tx (C04D0098h).
> Jun 19 15:10:59 ohdrouter kernel: Cancel tx (C04D0068h).
> Jun 19 15:10:59 ohdrouter kernel: Cancel tx (C04D0098h).
> Jun 19 15:14:14 ohdrouter kernel: Cancel tx (C04D0068h).
> Jun 19 15:14:14 ohdrouter kernel: Cancel tx (C04D0098h).
> Jun 19 15:25:05 ohdrouter kernel: Cancel tx (C04D00C8h).
>
> [3.] token ring, tms380, abyss, memory allocation failure, 1-order
> allocation failed, __alloc_pages, kernel 2.4.5 and previous 2.4 kernels
>
> [4.] Linux version 2.4.5 ([EMAIL PROTECTED]) (gcc version
> egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #6 Wed May 30 17:43:06
> EDT 2001
>
> [5.] N/A ... no Oops
>
> [6.] N/A ... can't force it to happen, just have to wait a week or so
>
> [7.] Red Hat Linux release 6.2 (Zoot)
>
> [7.1] output from sh scripts/ver_linux
>
> Gnu C                  egcs-2.91.66
> Gnu make               3.78.1
> binutils               2.9.5.0.22
> util-linux             2.10f
> mount                  2.10r
> modutils               2.4.5
> e2fsprogs              1.18
> pcmcia-cs              3.1.8
> PPP                    2.3.11
> Linux C Library        2.1.3
> Dynamic linker (ldd)   2.1.3
> Procps                 2.0.6
> Net-tools              1.54
> Console-tools          0.3.3
> Sh-utils               2.0
> Modules Loaded         ipchains abyss tms380tr tulip
>
> [7.2]
> [root@ohdrouter linux]# cat /proc/cpuinfo
> processor       : 0
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 3
> model name      : Pentium II (Klamath)
> stepping        : 4
> cpu MHz         : 298.737
> cache size      : 512 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 2
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov
> mmx
> bogomips        : 596.37
>
> [7.3]
> [root@ohdrouter linux]# cat /proc/modules
> ipchains               32320   0 (unused)
> abyss                   2960   1 (autoclean)
> tms380tr               43216   0 (autoclean) [abyss]
> tulip                  39328   2 (autoclean)
>
> [7.4]
> [root@ohdrouter linux]# cat /proc/ioports
> 0000-001f : dma1
> 0020-003f : pic1
> 0040-005f : timer
> 0060-006f : keyboard
> 0080-008f : dma page reg
> 00a0-00bf : pic2
> 00c0-00df : dma2
> 00f0-00ff : fpu
> 0170-0177 : ide1
> 01f0-01f7 : ide0
> 02f8-02ff : serial(auto)
> 0376-0376 : ide1
> 03c0-03df : vga+
> 03f6-03f6 : ide0
> 03f8-03ff : serial(auto)
> 0cf8-0cff : PCI conf1
> 4000-403f : Intel Corporation 82371AB PIIX4 ACPI
> 5000-501f : Intel Corporation 82371AB PIIX4 ACPI
> d000-dfff : PCI Bus #01
> e000-e01f : Intel Corporation 82371AB PIIX4 USB
> e400-e4ff : Lite-On Communications Inc LNE100TX
>   e400-e4ff : tulip
> e800-e8ff : Lite-On Communications Inc LNE100TX (#2)
>   e800-e8ff : tulip
> ec00-ecff : Madge Networks Smart 16/4 PCI Ringnode Mk2
>   ec00-ec3f : tr0
> f000-f00f : Intel Corporation 82371AB PIIX4 IDE
>
> [root@ohdrouter linux]# cat /proc/iomem
> 00000000-0009ffff : System RAM
> 000a0000-000bffff : Video RAM area
> 000c0000-000c7fff : Video ROM
> 000f0000-000fffff : System ROM
> 00100000-03ffffff : System RAM
>   00100000-001e11cf : Kernel code
>   001e11d0-00232c2b : Kernel data
> e0000000-e3ffffff : Intel Corporation 440LX/EX - 82443LX/EX Host bridge
> e4000000-e5ffffff : PCI Bus #01
>   e4000000-e4ffffff : NVidia / SGS Thomson (Joint Venture) Riva128
> e6000000-e6ffffff : PCI Bus #01
>   e6000000-e6ffffff : NVidia / SGS Thomson (Joint Venture) Riva128
> ea000000-ea0000ff : Lite-On Communications Inc LNE100TX
>   ea000000-ea0000ff : tulip
> ea001000-ea0010ff : Madge Networks Smart 16/4 PCI Ringnode Mk2
> ea002000-ea0020ff : Lite-On Communications Inc LNE100TX (#2)
>   ea002000-ea0020ff : tulip
> ffff0000-ffffffff : reserved
>
> [7.5]
> [root@ohdrouter linux]# cat lspci -vvv
> 00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge
> (rev 03)
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort+ >SERR- <PERR-
>         Latency: 64 set
>         Region 0: Memory at e0000000 (32-bit, prefetchable) [size=64M]
>         Capabilities: [a0] AGP version 1.0
>                 Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
>                 Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
>
> 00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge
> (rev 03) (prog-if 00 [Normal decode])
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 set
>         Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
>         I/O behind bridge: 0000d000-0000dfff
>         Memory behind bridge: e4000000-e5ffffff
>         Prefetchable memory behind bridge: e6000000-e6ffffff
>         BridgeCtl: Parity+ SERR+ NoISA- VGA+ MAbort- >Reset- FastB2B-
>
> 00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 01)
>         Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 0 set
>
> 00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
> (prog-if 80 [Master])
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 set
>         Region 4: I/O ports at f000 [size=16]
>
> 00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
> (prog-if 00 [UHCI])
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 set
>         Interrupt: pin D routed to IRQ 10
>         Region 4: I/O ports at e000 [size=32]
>
> 00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 01)
>         Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Interrupt: pin ? routed to IRQ 9
>
> 00:09.0 Ethernet controller: Lite-On Communications Inc LNE100TX (rev 20)
>         Subsystem: Netgear FA310TX
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 set
>         Interrupt: pin A routed to IRQ 11
>         Region 0: I/O ports at e400 [size=256]
>         Region 1: Memory at ea000000 (32-bit, non-prefetchable) [size=256]
>         Expansion ROM at e7000000 [disabled] [size=256K]
>
> 00:0a.0 Ethernet controller: Lite-On Communications Inc LNE100TX (rev 20)
>         Subsystem: Netgear FA310TX
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 set
>         Interrupt: pin A routed to IRQ 9
>         Region 0: I/O ports at e800 [size=256]
>         Region 1: Memory at ea002000 (32-bit, non-prefetchable) [size=256]
>         Expansion ROM at e8000000 [disabled] [size=256K]
>
> 00:0b.0 Token ring network controller: Madge Networks Smart 16/4 PCI
> Ringnode Mk2
>         Subsystem: Madge Networks Smart 16/4 PCI Ringnode Mk2
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 set, cache line size 08
>         Interrupt: pin A routed to IRQ 12
>         Region 0: I/O ports at ec00 [size=256]
>         Region 1: Memory at ea001000 (32-bit, non-prefetchable) [size=256]
>         Expansion ROM at e9000000 [disabled] [size=1M]
>
> 01:00.0 VGA compatible controller: NVidia / SGS Thomson (Joint Venture)
> Riva128 (rev 21) (prog-if 00 [VGA])
>         Subsystem: STB Systems Inc STB Velocity 128
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 3 min, 1 max, 64 set
>         Interrupt: pin A routed to IRQ 11
>         Region 0: Memory at e4000000 (32-bit, non-prefetchable) [size=16M]
>         Region 1: Memory at e6000000 (32-bit, prefetchable) [size=16M]
>         Expansion ROM at e5000000 [disabled] [size=4M]
>         Capabilities: [44] AGP version 1.0
>                 Status: RQ=4 SBA- 64bit- FW- Rate=x1,x2
>                 Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
>
> [7.6] N/A ... no SCSI on this system
>
> [7.7] Its pretty standard PC hardware with the exception of the token ring
> card which I know aren't nearly as widely used as ethernet cards.
>
> [root@ohdrouter linux]# free
>              total       used       free     shared    buffers     cached
> Mem:         62604      60068       2536          0       6120      47944
> -/+ buffers/cache:       6004      56600
> Swap:       136512       7280     129232
>
> [7.8] No ideas on patches or work arounds other than the mm/page_alloc.c
> patch mentioned above.
>
>
> * * *
>
> Please help!  =)
>
> We're only using this "router" in testing at this point but would like to
> roll it into our department's network. I won't do that as long as it is
> crashing once a week.
>
> If you need more information, I'll be happy to provide it let me know if I
> can help.
>
> Thanks,
>   Brian
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to