[Top] [All Lists]

Re: early_ioremap for MIPS

To: Ralf Baechle <>
Subject: Re: early_ioremap for MIPS
From: "Maciej W. Rozycki" <>
Date: Fri, 8 Feb 2008 15:03:18 +0000 (GMT)
Cc: Thomas Bogendoerfer <>, Florian Fainelli <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
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.


<Prev in Thread] Current Thread [Next in Thread>