All of lore.kernel.org
 help / color / mirror / Atom feed
From: "DI BACCO ANTONIO - technolabs" <Antonio.DiBacco@technolabs.it>
To: <linuxppc-embedded@ozlabs.org>
Subject: __pa(dma_alloc_coherent()) doesn't give physical address
Date: Mon, 26 Feb 2007 16:54:53 +0100	[thread overview]
Message-ID: <F1F6EC0C8B75034F9E3A79FC85122E8E682C13@aquib01a> (raw)

[-- Attachment #1: Type: text/plain, Size: 407 bytes --]

dma_alloc_coherent gives a kernel virtual address as a return address,
applying __pa I expected a physical address.
It doesn't happen, I receive an address far beyond my 16 MB ram.
Applying virt_to_bus doesn't give a physical address too.
OK, you can resort to dma_addr_t parameter of dma_alloc_coherent but is
there a reason for __pa not working on a kernel virtual address?
 
 
 
Bye,
Antonio.

[-- Attachment #2: Type: text/html, Size: 1382 bytes --]

             reply	other threads:[~2007-02-26 15:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-26 15:54 DI BACCO ANTONIO - technolabs [this message]
2007-02-26 16:26 ` __pa(dma_alloc_coherent()) doesn't give physical address 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=F1F6EC0C8B75034F9E3A79FC85122E8E682C13@aquib01a \
    --to=antonio.dibacco@technolabs.it \
    --cc=linuxppc-embedded@ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.