[Top] [All Lists]

Re: Modpost warning on Alchemy

To: Alan Cox <>
Subject: Re: Modpost warning on Alchemy
From: Sergei Shtylyov <>
Date: Wed, 01 Aug 2007 20:01:40 +0400
Cc: "Maciej W. Rozycki" <>, Ralf Baechle <>,
In-reply-to: <>
Organization: MontaVista Software Inc.
Original-recipient: rfc822;
References: <> <> <> <> <> <> <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803
Alan Cox wrote:

   Even on a CPU with 36-bit physical address? ;-)

Nope. This is one problem for example with ioremap on a Pentium Pro.

Well, but we only consider MIPS processors here which do not have such odd restrictions resulting from bad design decisions in the past. ;-) The 32-bit TLB entry format allows for up to 36 bits of the physical address space (34 bits if support for the page size of 1kB has been

So does the Pentium Pro. We can map 36bit physical addresses.

enabled). For anything beyond that you need a 64-bit MIPS processor using the 64-bit TLB entry format.

Your problem is a little higher up the stack. ioremap takes an unsigned
long, which on a 32bit system usually means you can't give it a 36bit bus
address to remap.

It takes phys_t, which is 'unsigned long long' for this platform that has CONFIG_64BUIT_PHYS_ADDR=y. The reall issue is the size.


WBR, Sergei

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