<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi and Happy New Year to all,<BR><BR>I use a Linux
2.4.25 kernel on a MPC8260 custom board<SPAN class=593241713-05012005>
with</SPAN> 128MB o<SPAN class=593241713-05012005>f</SPAN> RAM<SPAN
class=593241713-05012005>.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=593241713-05012005>PCI is activated and
my drivers are loaded as modules.</SPAN></FONT></DIV><FONT size=+0>
<DIV><FONT face=Arial size=2>The RAM is mapped at 0xC0000000 as usual.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>On MPC8XX I used kmalloc and iopa to get the
ph<SPAN class=593241713-05012005>y</SPAN>sical address<SPAN
class=593241713-05012005>es</SPAN> of the allocated buffer<SPAN
class=593241713-05012005>s</SPAN>.</FONT></DIV>
<DIV><FONT face=Arial size=2>On MPC82XX I use<SPAN
class=593241713-05012005>d</SPAN> kmalloc and __pa for the same thing<SPAN
class=593241713-05012005> and it worked fine with previous
kernel</SPAN>.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But now<SPAN class=593241713-05012005>,</SPAN> when
I want to use kmalloc, I get addresses like 0xC9xxxxxx.</FONT></DIV>
<DIV><FONT face=Arial size=2>The __pa gives me physical addresses 0x09xxxxxx
w<SPAN class=593241713-05012005>hich</SPAN> are out of my physical
RAM.</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried old iopa function and got some real
physical addresses and the module works.</FONT></DIV>
<DIV></FONT><FONT face=Arial size=2>The virt_to_bus gives me too addresses
like </FONT> <FONT face=Arial size=2>0x09xxxxxx<SPAN
class=593241713-05012005> </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=593241713-05012005>(ie substract kernel
base address 0xC0000000 as usual)</SPAN>.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial size=2>I don't understand
why I get virtual addresses which seem to be out of my memory and why it
runs.</FONT></SPAN></DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial size=2>More, I have a
global variable which is a little buffer. It is also mapped at a 0xC9xxxxxx
address.</FONT></SPAN></DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial size=2>Has anyone an
idea or a link to a detailed howto ?</FONT></SPAN></DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial
size=2>Bye</FONT></SPAN></DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial
size=2>Laurent</FONT></SPAN></DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=593241713-05012005><FONT face=Arial size=2>PS : Linux console
informations about memory.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>Memory BAT mapping: BAT2=128Mb, BAT3=0Mb, residual:
0Mb<BR>Linux version 2.4.25 (version gcc 3.2.3) </FONT></DIV>
<DIV><FONT face=Arial size=2>On node 0 totalpages: 32768<BR>zone(0): 32768
pages.<BR>zone(1): 0 pages.<BR>zone(2): 0 pages.<BR>...<BR>Memory: 127008k
available (948k kernel code, 296k data, 60k init, 0k highmem)<BR>Dentry cache
hash table entries: 16384 (order: 5, 131072 bytes)<BR>Inode cache hash table
entries: 8192 (order: 4, 65536 bytes)<BR>Mount cache hash table entries: 512
(order: 0, 4096 bytes)<BR>Buffer cache hash table entries: 8192 (order: 3, 32768
bytes)<BR>Page-cache hash table entries: 32768 (order: 5, 131072
bytes)</FONT></DIV></DIV></BODY></HTML>