public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Colin Ngam <cngam@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] 64 Bits DMA Addresses for Alloc Consistent Interfaces.
Date: Thu, 15 May 2003 13:17:58 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590723705821@msgid-missing> (raw)

Hi,

The Altix PCI-X Bridge chipset expects devices that runs in
PCI-X mode to always be 64Bit DMA Address capable(DAC).  This
requirement is directly in conflict with both the
pci_alloc_consistent() and dma_alloc_coherent() interfaces.

The pci_alloc_consistent() interface is very clear that the mapped
dma address must be no bigger than 32 bits.  However, the
dma_alloc_coherent() interface is less clear:

"This routine allocates a region of <size> bytes of consistent memory.
it also returns a <dma_handle> which may be cast to an unsigned
integer the same width as the bus and used as the physical address
base of the region."

Anyway, to make a long story short, we like to "extend" these
interfaces to return DMA addresses of 64 bits if and when the
driver has the full capabality to support DAC - via it's
DMA mask capability setting.

This extention will not break current usages of these interface,
and as driver changes, this extension will enable platforms to
support all of it's Physical Memory via the above 2 Interfaces
without exhausting limited system mapping resources.

Thanks.

Colin Ngam




                 reply	other threads:[~2003-05-15 13:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=marc-linux-ia64-105590723705821@msgid-missing \
    --to=cngam@sgi.com \
    --cc=linux-ia64@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