linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: John Francis <johnfrancsis@yahoo.com>
To: Dan Malek <dan@mvista.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Using IDMA1 ( or IDMA2 ) on 860
Date: Mon, 20 Aug 2001 12:16:55 -0700 (PDT)	[thread overview]
Message-ID: <20010820191655.27820.qmail@web20105.mail.yahoo.com> (raw)
In-Reply-To: <3B802482.80086FC8@mvista.com>


Dan,

>
> > /* version2 of GetChipAddress this WORKS why? */
>
> Because you can't directly access physical bus
> addresses from
> the kernel.  They have to be mapped to some virtual
> address.
> The IMMR is mapped to a well known address that can
> generally
> be used anywhere in the kernel.  Anything else must
> be mapped,
> as your example shows.  Just make sure you do this
> _once_,
> don't keep calling ioremap() over and over or you
> will exhaust
> the VM space and get a different address every time.
>
>
> 	-- Dan

Thanks for all your help and education. One last
question on this, if I have a pointer that is returned
by doing ioremap_noncache() if I want to assign this
pointer in buffer descriptor setup should i be doing
__pa () correct? Will __pa() translate that address
back to the actual physical address?

John


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-08-20 19:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-19 19:06 Using IDMA1 ( or IDMA2 ) on 860 John Francis
2001-08-19 19:50 ` Dan Malek
2001-08-19 20:33   ` John Francis
2001-08-19 20:41     ` Dan Malek
2001-08-20 19:16       ` John Francis [this message]
2001-08-20 19:35         ` Dan Malek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010820191655.27820.qmail@web20105.mail.yahoo.com \
    --to=johnfrancsis@yahoo.com \
    --cc=dan@mvista.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).