From: Alex Williamson <alex.williamson@hp.com>
To: Adhiraj <adhiraj@linsyssoft.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: pci_map_single() on IA64
Date: Wed, 07 Jun 2006 08:21:08 -0600 [thread overview]
Message-ID: <1149690068.5528.15.camel@lappy> (raw)
In-Reply-To: <1149671049.3499.27.camel@triumph>
On Wed, 2006-06-07 at 14:34 +0530, Adhiraj wrote:
> Hi all,
>
> How is it possible that on an IA64 machine, the address returned by
> pci_map_single() is above 4G (32 bits) when I have only 2G of physical
> memory?
>
> The DMA mask is set to 64 bits (using pci_set_dma_mask()). When I change
> it to 32 bit DMA mask, the problem goes away.
>
> This problem does not appear on i388/x86_64 machines.
What is the physical layout of that 2GB of memory? You can't count
on memory being contiguous, especially on IA64 systems. If the address
you get back is within the DMA mask of the device, then the DMA mapping
is valid. You can run 'grep "System RAM" /proc/iomem' to get some idea
of the physical memory address map. Thanks,
Alex
--
Alex Williamson HP Open Source & Linux Org.
prev parent reply other threads:[~2006-06-07 14:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-07 9:04 pci_map_single() on IA64 Adhiraj
2006-06-07 14:11 ` Jes Sorensen
2006-06-07 14:21 ` Alex Williamson [this message]
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=1149690068.5528.15.camel@lappy \
--to=alex.williamson@hp.com \
--cc=adhiraj@linsyssoft.com \
--cc=linux-kernel@vger.kernel.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