The 'scan scsis' code does not really check for memory allocations
failure. This may be due to the facts that in the early time of Linux,
modules were not available and memory allocations are very unlikeley to
fail at system initialization. On the other hand, this code tries to
allocate ISA DMAable memory which has some not negligible probability to
fail after system initialization. The foot (since we only have 2 hands)
:-) is that the 'scan scsis' code uses GFP_ATOMIC priority for the ISA
DMAable allocations (and also for allocations that are not to be
guaranteed for ISA DMA).
Note that if we just would check for failures and do nothing on error, the
scsi scan would not work better, but may-be, this would leave some chance
to succeed by unloading and then reloading the driver.
Gérard.
On Fri, 2 Jul 1999 SMajer@advance-bank.de wrote:
>
>
> Hi All
>
> Im running a Quad Xeon with 1Gig of ram with Kernel 2.2.10 since 2 weeks with no
> Problem
> but yesterday i got the following oops:
>
> It happens when my backup starts and the module for the symbios scsi-controler
> det loaded.
>
> Jul 2 02:00:00 www /USR/SBIN/CRON[1452]: (root) CMD (/root/bin/backup)
> Jul 2 02:00:21 www kernel: sym53c8xx:
> setup=disc:n,specf:0,ultra:0,tags:0,sync:255,burst:255,wide:n,diff:1,revprob:n,buschk:0x1
>
>
> Jul 2 02:00:21 www kernel: sym53c8xx:
> setup=mpar:y,spar:y,fsn=n,verb:2,debug:0x0,led:n,settle:10,irqm:0x1,nvram:0x1,pcifix:0x0
>
>
> Jul 2 02:00:21 www kernel: sym53c8xx: at PCI bus 1, device 2, function 0
> Jul 2 02:00:21 www kernel: sym53c8xx: setting PCI_COMMAND_PARITY...(fix-up)
> Jul 2 02:00:21 www kernel: sym53c8xx: 53c876 detected with Symbios NVRAM
> Jul 2 02:00:21 www kernel: sym53c8xx: at PCI bus 1, device 3, function 0
> Jul 2 02:00:21 www kernel: sym53c8xx: setting PCI_COMMAND_PARITY...(fix-up)
> Jul 2 02:00:21 www kernel: sym53c8xx: 53c876 detected with Symbios NVRAM
> Jul 2 02:00:21 www kernel: sym53c876-0: rev=0x26, base=0xfa202000,
> io_port=0x3000, irq=30
> Jul 2 02:00:21 www kernel: sym53c876-0: using memory mapped IO
> Jul 2 02:00:21 www kernel: sym53c876-0: clock multiplier found
> Jul 2 02:00:21 www kernel: sym53c876-0: Symbios format NVRAM, ID 7, Fast-10,
> Parity Checking
> Jul 2 02:00:21 www kernel: sym53c876-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 =
> (hex) 05/4e/80/01/00/24
> Jul 2 02:00:21 www kernel: sym53c876-0: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 =
> (hex) 05/40/00/00/08/04
> Jul 2 02:00:21 www kernel: sym53c876-0: resetting, command processing suspended
> for 10 seconds
> Jul 2 02:00:21 www kernel: sym53c876-0: restart (scsi reset).
> Jul 2 02:00:21 www kernel: sym53c876-0: enabling clock multiplier
> Jul 2 02:00:21 www kernel: sym53c876-0: waiting 10 seconds for scsi devices to
> settle...
> Jul 2 02:00:21 www kernel: sym53c876-0: command processing resumed
> Jul 2 02:00:21 www kernel: sym53c876-1: rev=0x26, base=0xfa202400,
> io_port=0x3400, irq=31
> Jul 2 02:00:21 www kernel: sym53c876-1: using memory mapped IO
> Jul 2 02:00:21 www kernel: sym53c876-1: clock multiplier found
> Jul 2 02:00:21 www kernel: sym53c876-1: Symbios format NVRAM, ID 7, Fast-10,
> Parity Checking
> Jul 2 02:00:21 www kernel: sym53c876-1: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 =
> (hex) 05/4e/80/01/00/24
> Jul 2 02:00:21 www kernel: sym53c876-1: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 =
> (hex) 05/40/00/00/08/04
> Jul 2 02:00:21 www kernel: sym53c876-1: resetting, command processing suspended
> for 10 seconds
> Jul 2 02:00:21 www kernel: sym53c876-1: restart (scsi reset).
> Jul 2 02:00:21 www kernel: sym53c876-1: enabling clock multiplier
> Jul 2 02:00:21 www kernel: sym53c876-1: waiting 10 seconds for scsi devices to
> settle...
> Jul 2 02:00:21 www kernel: sym53c876-1: command processing resumed
> Jul 2 02:00:21 www kernel: scsi0 : sym53c8xx - version 1.3c
> Jul 2 02:00:21 www kernel: scsi1 : sym53c8xx - version 1.3c
> Jul 2 02:00:21 www kernel: scsi : 2 hosts.
> Jul 2 02:00:21 www kernel: Unable to handle kernel NULL pointer dereference at
> virtual address 00000000
> Jul 2 02:00:21 www kernel: current->tss.cr3 = 22212000, %cr3 = 22212000
> Jul 2 02:00:21 www kernel: *pde = 00000000
> Jul 2 02:00:21 www kernel: Oops: 0002
> Jul 2 02:00:21 www kernel: CPU: 1
> Jul 2 02:00:21 www kernel: EIP: 0010:[scan_scsis+84/1168]
> Jul 2 02:00:21 www kernel: EFLAGS: 00010246
> Jul 2 02:00:21 www kernel: eax: 00000000 ebx: e202df00 ecx: 00000047 edx:
> 00000000
> Jul 2 02:00:21 www kernel: esi: 00000000 edi: 00000000 ebp: fc86f440 esp:
> e202ddc8
> Jul 2 02:00:21 www kernel: ds: 0018 es: 0018 ss: 0018
> Jul 2 02:00:21 www kernel: Process insmod (pid: 1475, process nr: 60,
> stackpage=e202d000)
> Jul 2 02:00:21 www kernel: Stack: e374a2a0 fc86f440 00000000 00000000 00000000 00000000
>
> 00000000 00000000
> Jul 2 02:00:21 www kernel: 00301010 000f000a 00301010 000f000a 00301010
> 000f000a 00301010 000f000a
> Jul 2 02:00:21 www kernel: ffffffff c022bb4a 0000000a 00000002 00000002
> 000f000a 00301010 00000000
> Jul 2 02:00:21 www kernel: Call Trace: [<fc86f440>] [RCSid+22432/22944]
> [vsprintf+819/876] [<fc86f440>] [scsi_device_types+4072/5216] [printk+383/396]
> [<fc86f440>]
> Jul 2 02:00:21 www kernel: [scsi_register_host+419/612] [<fc86f440>]
> [<fc864052>] [<fc864000>] [scsi_register_module+42/92] [<fc86f440>] [<fc864000>]
> [<fc86c0e6>]
> Jul 2 02:00:21 www kernel: [<fc86f440>] [sys_init_module+1127/1248]
> [<fc864000>] [<fc86f5a8>] [<fc864048>] [system_call+52/64] [<fc86f52b>]
> [<fc864000>]
> Jul 2 02:00:21 www kernel: Code: f3 ab 6a 08 6a 58 e8 95 20 00 00 89 c7 89 7c
> 24 38 83 c4 08
>
>
> ver_linux says::
>
>
> -- Versions installed: (if some fields are empty or looks
> -- unusual then possibly you have very old versions)
> Linux www 2.2.10 #1 SMP Fri Jun 18 16:05:15 MEST 1999 i686 unknown
> Kernel modules 2.1.85
> Gnu C egcs-2.91.60
> Binutils 2.9.1.0.15
> Linux C Library x 1 root root 650524 Apr 8 16:37
> /lib/libc.so.6
> Dynamic linker ldd (GNU libc) 2.0.7
> Procps 1.2.7
> Mount 2.9
> Net-tools 1.52
> Kbd 0.96
> Sh-utils 1.12
> Modules Loaded sym53c8xx
>
>
> any hints welcome
>
>
> Stefan Majer
> Advance Bank AG
> Munich
> Germany
>
> please contact me with smajer@advance-bank.de
> because im not subscribed to this mailing list
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/