Re: Re: kernel crash in fault.c

"Nandakumar NarayanaSwamy" <[email protected]> 29 Jul 2002 13:37:22 -0000
Newsgroups gmane.linux.ports.mips.devel
Message-ID <[email protected]>
Hi Raj,
Thanks for ur immediate response.

There are about three PCI devices in the board. When the linux 
boots up, it detects all the three devices and allocates memory. 
The driver for other 2 devices is built with the kernel. I am 
trying to load  the driver for the third device.

I am trying to use the memory that is already allocated to this 
device during bootup. When i try to write a word in this address 
space, the system crashes.

Am i missing somewhere?

Thanks in advance,
Nanda.

On Mon, 29 Jul 2002 S Rajkumar wrote :
>The PCI address you accessed doesn't seem to be within the PCI 
>address window.
>Check the address range setup in your systems PCI controller. Or 
>you might be
>facing problems in the ioremap of the PCI address. So check both 
>the ioremap'ed
>address and the PCI address and see if they are OK.
>
>
>Nandakumar NarayanaSwamy wrote:
>
>>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.
>>-
>>To unsubscribe from this list: send the line "unsubscribe 
>>linux-mips" in
>>the body of a message to [email protected]
>>More majordomo info at  
>>http://vger.kernel.org/majordomo-info.html
>>
>
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-mips" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html