2002-07-29 11:09:57

by Nandakumar NarayanaSwamy

[permalink] [raw]
Subject: kernel crash in fault.c

Hi All,
I am getting a kernel crash when i try to load (using insmod) my
driver module into the kernel.
When the kernel boots up, it identifies my device (hardware
device) and allocates memory and fixup irq for that.
Mean while in driver i am registering the driver using,
pci_register_driver. When i tried to access (write a word) the
PCI
memory space allocated for my device, the kernel crashes saying
"Unable to handle kernel paging request at virtual address "
in fault.c function : do_page_fault?

Can anyone throw a light on this?

Thanks in advance,
Nanda.


2002-07-29 14:10:24

by Rik van Riel

[permalink] [raw]
Subject: Re: kernel crash in fault.c

On 29 Jul 2002, Nandakumar NarayanaSwamy wrote:

> When the kernel boots up, it identifies my device (hardware
> device) and allocates memory and fixup irq for that.
> Mean while in driver i am registering the driver using,
> pci_register_driver. When i tried to access (write a word) the
> PCI
> memory space allocated for my device, the kernel crashes saying
> "Unable to handle kernel paging request at virtual address "
> in fault.c function : do_page_fault?
>
> Can anyone throw a light on this?

Are you using bus_to_virt (or whatever that thing is called now)
to translate the bus address to a memory address or are you taking
the bus address and trying to write to that memory address ?

regards,

Rik
--
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/