Thread (20 messages) flat view 20 messages, 5 authors, 2007-02-09

RE: [PATCH 1/4] ucc_geth: Change private immrbar_virt_to_phys to generic iopa

From: Li Yang-r58472 <hidden>
Date: 2007-02-08 07:35:11
Also in: linuxppc-dev

-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, February 08, 2007 3:16 PM
To: Li Yang-r58472
Cc: Tabi Timur-B04825; netdev@vger.kernel.org; linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 1/4] ucc_geth: Change private immrbar_virt_to_phys
to generic
iopa


On Feb 8, 2007, at 1:06 AM, Li Yang-r58472 wrote:
quoted
quoted
quoted
MURAM is a mmio region so it don't share the characteristic of
main
quoted
quoted
quoted
memory that phy_addr = virt_addr - PAGE_OFFSET.  While they can
both be
mapped through page table using iopa().
Right, so when do you know if you'll be using MURAM or normal
memory?  Why not just keep around a token that is the physical
address at the point you make the decision of MURAM vs normal
memory.
quoted
Yes, that can be a way.  But as the virt to phy mapping is only used
once, it's nothing bad to do it this way.
The problem as I stated before with using iopa() is that its not
supported across platforms.
Yes, it is only for PPC32.  But we don't have another API to do it.  How
about make it more generic to add PPC64 version?

- Leo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help