Linux MIPS Architecture development
 help / color / mirror / Atom feed
* mips kseg1 mapping..
@ 2002-09-27 14:46 atul srivastava
  2002-09-27 15:15 ` Bradley D. LaRonde
  2002-09-27 15:22 ` Ralf Baechle
  0 siblings, 2 replies; 4+ messages in thread
From: atul srivastava @ 2002-09-27 14:46 UTC (permalink / raw)
  To: linux-mips

I am relatively new on MIPS architecture.
working on BSP for MIPS R32xx on IDT .

i have a basic question.

1.PCI BAR 1 of my eepro100 card has been initialised with
address 0x18800100 for 64 bytes.
this is a valid PCI IO address as per manual.

2.what i understand is that lower 0 - 512 MB physical is mapped to 
0xa000-0000 to 0xb7ff-ffff virtual and also access to this range 
in uncached.

3.when i am loading my eepro100 driver , in do_eeprom_cmd() when 
it refers the address( ioaddr + SCBeeprom) my kernel panicks with 
message "unable to handle kernel paging request at 0xd100010e.

this virtual address is in range 0xa000-0000 to 0xb7ff-ffff.

now my question is what all i have to do so that this access is 
passed i mean i get a valid virtual-physical mapping for this 
address.

where i need to take care of kseg1 translation in my BSP
Best Regards,
Ashish



__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mips kseg1 mapping..
  2002-09-27 14:46 mips kseg1 mapping atul srivastava
@ 2002-09-27 15:15 ` Bradley D. LaRonde
  2002-09-27 15:15   ` Bradley D. LaRonde
  2002-09-27 15:22 ` Ralf Baechle
  1 sibling, 1 reply; 4+ messages in thread
From: Bradley D. LaRonde @ 2002-09-27 15:15 UTC (permalink / raw)
  To: atul srivastava, linux-mips

----- Original Message -----
From: "atul srivastava" <atulsrivastava9@rediffmail.com>
To: <linux-mips@linux-mips.org>
Sent: Friday, September 27, 2002 10:46 AM
Subject: mips kseg1 mapping..


> 1.PCI BAR 1 of my eepro100 card has been initialised with
> address 0x18800100 for 64 bytes.
> this is a valid PCI IO address as per manual.
>
> 2.what i understand is that lower 0 - 512 MB physical is mapped to
> 0xa000-0000 to 0xb7ff-ffff virtual and also access to this range
> in uncached.
>
> 3.when i am loading my eepro100 driver , in do_eeprom_cmd() when
> it refers the address( ioaddr + SCBeeprom) my kernel panicks with
> message "unable to handle kernel paging request at 0xd100010e.
>
> this virtual address is in range 0xa000-0000 to 0xb7ff-ffff.

KSEG1 is always mapped (you can think of it as wired).

PCI bus addresses should be remapped through ioremap.  Is ioremap returning
the address you expect?

Regards,
Brad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mips kseg1 mapping..
  2002-09-27 15:15 ` Bradley D. LaRonde
@ 2002-09-27 15:15   ` Bradley D. LaRonde
  0 siblings, 0 replies; 4+ messages in thread
From: Bradley D. LaRonde @ 2002-09-27 15:15 UTC (permalink / raw)
  To: atul srivastava, linux-mips

----- Original Message -----
From: "atul srivastava" <atulsrivastava9@rediffmail.com>
To: <linux-mips@linux-mips.org>
Sent: Friday, September 27, 2002 10:46 AM
Subject: mips kseg1 mapping..


> 1.PCI BAR 1 of my eepro100 card has been initialised with
> address 0x18800100 for 64 bytes.
> this is a valid PCI IO address as per manual.
>
> 2.what i understand is that lower 0 - 512 MB physical is mapped to
> 0xa000-0000 to 0xb7ff-ffff virtual and also access to this range
> in uncached.
>
> 3.when i am loading my eepro100 driver , in do_eeprom_cmd() when
> it refers the address( ioaddr + SCBeeprom) my kernel panicks with
> message "unable to handle kernel paging request at 0xd100010e.
>
> this virtual address is in range 0xa000-0000 to 0xb7ff-ffff.

KSEG1 is always mapped (you can think of it as wired).

PCI bus addresses should be remapped through ioremap.  Is ioremap returning
the address you expect?

Regards,
Brad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mips kseg1 mapping..
  2002-09-27 14:46 mips kseg1 mapping atul srivastava
  2002-09-27 15:15 ` Bradley D. LaRonde
@ 2002-09-27 15:22 ` Ralf Baechle
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2002-09-27 15:22 UTC (permalink / raw)
  To: atul srivastava; +Cc: linux-mips

On Fri, Sep 27, 2002 at 02:46:41PM -0000, atul srivastava wrote:

> 0xa000-0000 to 0xb7ff-ffff virtual and also access to this range 
> in uncached.
> 
> 3.when i am loading my eepro100 driver , in do_eeprom_cmd() when 
> it refers the address( ioaddr + SCBeeprom) my kernel panicks with 
> message "unable to handle kernel paging request at 0xd100010e.
> 
> this virtual address is in range 0xa000-0000 to 0xb7ff-ffff.

Your numbers are wrong - KSEG1 is 0xa0000000 to 0xbfffffff.

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-27 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-27 14:46 mips kseg1 mapping atul srivastava
2002-09-27 15:15 ` Bradley D. LaRonde
2002-09-27 15:15   ` Bradley D. LaRonde
2002-09-27 15:22 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox