Re: kernel crash in fault.c

S Rajkumar <[email protected]> Mon, 29 Jul 2002 21:37:47 +0530
Newsgroups gmane.linux.ports.mips.devel
Organization Wipro Technologies Ltd.
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPartTM-000-c89d5ba9-55b0-4dab-aea7-465a998a9591
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Nandakumar NarayanaSwamy wrote:

> 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? 



    Probably yes ;)... The PCI address allocated by the boot loader will 
be within the
range which is hardwired or routed by the system controller to the PCI 
controller.
If the value is proper you would not get a page fault. There are two 
possibilities

1)  The address assigned by the boot loader to your device might be 
outside the
PCI address window.  Do a cat /proc/pci and see what is the address 
range allocated for your device.

2) You are doing something wrong when you ioremap the PCI IO address 
range to
KSEG2 space.  Try using the memory address range.

I believe you wouldn't get a page fault if the problem was just not 
enabling PCI IO or MEM
access.

BTW what is the badvaddr when the system faults ?

>> 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.
>>



------=_NextPartTM-000-c89d5ba9-55b0-4dab-aea7-465a998a9591
Content-Type: text/plain;
	name="Wipro_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="Wipro_Disclaimer.txt"

**************************Disclaimer**************************************************    
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

****************************************************************************************

------=_NextPartTM-000-c89d5ba9-55b0-4dab-aea7-465a998a9591--
-
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