* early_ioremap for MIPS
@ 2008-02-07 18:32 Florian Fainelli
2008-02-08 11:05 ` Maciej W. Rozycki
0 siblings, 1 reply; 8+ messages in thread
From: Florian Fainelli @ 2008-02-07 18:32 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
Hi list,
Is there any need for early_ioremap on MIPS ? Seems like only x86_64 is
implementing it for now.
Thank you for your answer.
--
Cordialement, Florian Fainelli
------------------------------
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: early_ioremap for MIPS
2008-02-07 18:32 early_ioremap for MIPS Florian Fainelli
@ 2008-02-08 11:05 ` Maciej W. Rozycki
2008-02-08 12:28 ` Thomas Bogendoerfer
2008-02-10 22:44 ` M. Warner Losh
0 siblings, 2 replies; 8+ messages in thread
From: Maciej W. Rozycki @ 2008-02-08 11:05 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linux-mips
On Thu, 7 Feb 2008, Florian Fainelli wrote:
> Is there any need for early_ioremap on MIPS ? Seems like only x86_64 is
> implementing it for now.
There is hardly any need as generally KSEG0/KSEG1 and XPHYS mappings
fulfil the need and are always available, even before paging has been
initialised. Some 32-bit systems with devices outside low 512MB of
physical address space could potentially benefit though. I recall some
Alchemy systems may fall into this category.
Maciej
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: early_ioremap for MIPS
2008-02-08 11:05 ` Maciej W. Rozycki
@ 2008-02-08 12:28 ` Thomas Bogendoerfer
2008-02-08 14:44 ` Ralf Baechle
2008-02-10 22:44 ` M. Warner Losh
1 sibling, 1 reply; 8+ messages in thread
From: Thomas Bogendoerfer @ 2008-02-08 12:28 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Florian Fainelli, linux-mips
On Fri, Feb 08, 2008 at 11:05:12AM +0000, Maciej W. Rozycki wrote:
> On Thu, 7 Feb 2008, Florian Fainelli wrote:
>
> > Is there any need for early_ioremap on MIPS ? Seems like only x86_64 is
> > implementing it for now.
>
> physical address space could potentially benefit though. I recall some
> Alchemy systems may fall into this category.
Jazz has the same problem. Right now it's solved by using wired tlb
entries. Which is sort of an early_ioremap.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: early_ioremap for MIPS
2008-02-08 12:28 ` Thomas Bogendoerfer
@ 2008-02-08 14:44 ` Ralf Baechle
2008-02-08 15:03 ` Maciej W. Rozycki
0 siblings, 1 reply; 8+ messages in thread
From: Ralf Baechle @ 2008-02-08 14:44 UTC (permalink / raw)
To: Thomas Bogendoerfer; +Cc: Maciej W. Rozycki, Florian Fainelli, linux-mips
On Fri, Feb 08, 2008 at 01:28:59PM +0100, Thomas Bogendoerfer wrote:
> Jazz has the same problem. Right now it's solved by using wired tlb
> entries. Which is sort of an early_ioremap.
One with a totally awkward API requiring the user having to know about
the underlying TLB organization. A better implementation wouldn't be
hard to do, for anything that's outside of KSEG1's address range grab
a new TLB entry if needed and wire an entry into it. Use the same
API as good old ioremap() and call the result early_ioremap().
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: early_ioremap for MIPS
2008-02-08 14:44 ` Ralf Baechle
@ 2008-02-08 15:03 ` Maciej W. Rozycki
0 siblings, 0 replies; 8+ messages in thread
From: Maciej W. Rozycki @ 2008-02-08 15:03 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Thomas Bogendoerfer, Florian Fainelli, linux-mips
On Fri, 8 Feb 2008, Ralf Baechle wrote:
> > Jazz has the same problem. Right now it's solved by using wired tlb
> > entries. Which is sort of an early_ioremap.
>
> One with a totally awkward API requiring the user having to know about
> the underlying TLB organization. A better implementation wouldn't be
> hard to do, for anything that's outside of KSEG1's address range grab
> a new TLB entry if needed and wire an entry into it. Use the same
> API as good old ioremap() and call the result early_ioremap().
And presumably by the time paging has been set up for real, all the early
allocations could get automatically graduated to ordinary ones, freeing up
all the wired TLB entries set up so far and keeping the values of cookies
obtained intact.
Maciej
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: early_ioremap for MIPS
2008-02-08 11:05 ` Maciej W. Rozycki
2008-02-08 12:28 ` Thomas Bogendoerfer
@ 2008-02-10 22:44 ` M. Warner Losh
2008-02-11 10:27 ` Maciej W. Rozycki
2008-02-12 14:48 ` Ralf Baechle
1 sibling, 2 replies; 8+ messages in thread
From: M. Warner Losh @ 2008-02-10 22:44 UTC (permalink / raw)
To: macro; +Cc: florian.fainelli, linux-mips
In message: <Pine.LNX.4.64N.0802081058350.7017@blysk.ds.pg.gda.pl>
"Maciej W. Rozycki" <macro@linux-mips.org> writes:
: On Thu, 7 Feb 2008, Florian Fainelli wrote:
:
: > Is there any need for early_ioremap on MIPS ? Seems like only x86_64 is
: > implementing it for now.
:
: There is hardly any need as generally KSEG0/KSEG1 and XPHYS mappings
: fulfil the need and are always available, even before paging has been
: initialised. Some 32-bit systems with devices outside low 512MB of
: physical address space could potentially benefit though. I recall some
: Alchemy systems may fall into this category.
The Acer Pica machines, as well as the Deskstation Tynes, had devices
mapped outside of this range... Of course Ralf will be able to say
more, if he chooses to jump into the way-back machine...
Warner
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: early_ioremap for MIPS
2008-02-10 22:44 ` M. Warner Losh
@ 2008-02-11 10:27 ` Maciej W. Rozycki
2008-02-12 14:48 ` Ralf Baechle
1 sibling, 0 replies; 8+ messages in thread
From: Maciej W. Rozycki @ 2008-02-11 10:27 UTC (permalink / raw)
To: M. Warner Losh; +Cc: florian.fainelli, linux-mips
On Sun, 10 Feb 2008, M. Warner Losh wrote:
> : There is hardly any need as generally KSEG0/KSEG1 and XPHYS mappings
> : fulfil the need and are always available, even before paging has been
> : initialised. Some 32-bit systems with devices outside low 512MB of
> : physical address space could potentially benefit though. I recall some
> : Alchemy systems may fall into this category.
>
> The Acer Pica machines, as well as the Deskstation Tynes, had devices
> mapped outside of this range... Of course Ralf will be able to say
> more, if he chooses to jump into the way-back machine...
Please note that it is not the sole existence of some hardware in the
physical address range inaccessible through the mapped space that matters
here. It is the need to use such a piece of hardware before paging has
been initialised that is of concern for early ioremap() and for most
devices it means there is no issue.
Maciej
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: early_ioremap for MIPS
2008-02-10 22:44 ` M. Warner Losh
2008-02-11 10:27 ` Maciej W. Rozycki
@ 2008-02-12 14:48 ` Ralf Baechle
1 sibling, 0 replies; 8+ messages in thread
From: Ralf Baechle @ 2008-02-12 14:48 UTC (permalink / raw)
To: M. Warner Losh; +Cc: macro, florian.fainelli, linux-mips
On Sun, Feb 10, 2008 at 03:44:01PM -0700, M. Warner Losh wrote:
> The Acer Pica machines, as well as the Deskstation Tynes, had devices
> mapped outside of this range... Of course Ralf will be able to say
> more, if he chooses to jump into the way-back machine...
Yes, I recall. Unfortunately I don't have my PICA anymore; it's been a
hell of a machine by the standards of its days. Anyway, designs which
just like the PICA need some ioremap - and preferably available early
during bootup - have been developed after the PICA and are still being
developped.
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-02-12 14:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 18:32 early_ioremap for MIPS Florian Fainelli
2008-02-08 11:05 ` Maciej W. Rozycki
2008-02-08 12:28 ` Thomas Bogendoerfer
2008-02-08 14:44 ` Ralf Baechle
2008-02-08 15:03 ` Maciej W. Rozycki
2008-02-10 22:44 ` M. Warner Losh
2008-02-11 10:27 ` Maciej W. Rozycki
2008-02-12 14:48 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox