panic when loading driver

Raju K V (rajukv@wipinfo.soft.net)
Wed, 3 Nov 1999 16:56:16 +0530


hi,

I have written an SCSI HBA driver. This driver is compiled as a module.
When trying to load this driver using insmod, I get a kernel panic.
Details are:

Unable to handle kernel paging request at virtual address 0007a1bc
current->tss.cr3=016cb000, %cr3=016cb000
*pde=00000000

This driver requires a large amount of memory for allocating various
driver. The machine has 32MB RAM. Just before the panic, the total
amount of memory allocated by the driver is around 8824 bytes. The panic occurs
when I try to do a kmalloc for some more memory.

What can be the possible reason for this panic? Is it that the system is
running out of memory? Or is the panic because the data structures are
not aligned, ie I have not bothered to align any of the
data structures.

uname -a
Linux linpqs 2.2.101 SMP Fri Oct 15 17:24:42 IST 1999 i586 unknown

gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

memory status just before insmod
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 5
model : 2
model name : Pentium 75 - 200
stepping : 11
cpu MHz : 132.633368
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : yes
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8
bogomips : 52.84

cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 31358976 30076928 1282048 31404032 1323008 10784768
Swap: 68136960 282624 67854336
MemTotal: 30624 kB
MemFree: 1252 kB
MemShared: 30668 kB
Buffers: 1292 kB
Cached: 10532 kB
SwapTotal: 66540 kB
SwapFree: 66264 kB

Please contact me for more clarifications.

Thanks in advance,
Raju
ps: Please CC me in your replies as I am not subscribed to the 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/