netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: mchan@broadcom.com
Cc: jeff@garzik.org, netdev@vger.kernel.org
Subject: Re: [PATCH 3/20][BNX2]: Add 40-bit DMA workaround for 5708.
Date: Wed, 02 May 2007 15:48:02 -0700 (PDT)	[thread overview]
Message-ID: <20070502.154802.26506902.davem@davemloft.net> (raw)
In-Reply-To: <1178148502.4820.117.camel@dell>

From: "Michael Chan" <mchan@broadcom.com>
Date: Wed, 02 May 2007 16:28:22 -0700

> Is it correct to assume that all 64-bit systems using 64-bit
> dma_addr_t will either have real IOMMUs or will use SWIOTLB?  If
> this is true, we can just set the DMA mask to what is supported by
> the hardware and let pci_map_xxx() handle all necessary translations
> or bounce buffering.

This should work.

Especailly since every platform has to support 32-bit DMA masks, the
worst possible case is that the 40-bit DMA mask set fails, and you
have to fall back to 32-bit.

But since every driver has that fallback logic, it should be totally
transparent.

We might want to formalize that at some point to save driver code.
Ie. we'd have an interface that takes a prioritized array of DMA
masks the driver wants to use, and you get back the index that was
selected or an error if none of them could be accomodated.

It's just a tangental future cleanup idea, since we're discussing
this.

      reply	other threads:[~2007-05-02 22:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-02  1:13 [PATCH 3/20][BNX2]: Add 40-bit DMA workaround for 5708 Michael Chan
2007-05-02  7:06 ` Jeff Garzik
2007-05-02  7:12   ` David Miller
2007-05-02 15:23     ` Michael Chan
2007-05-02 15:28       ` Christoph Hellwig
2007-05-02 15:29       ` Jeff Garzik
2007-05-02 18:23         ` Michael Chan
2007-05-02 18:24           ` Jeff Garzik
2007-05-02 20:02             ` Michael Chan
2007-05-02 20:30               ` Jeff Garzik
2007-05-02 22:48               ` Christoph Hellwig
2007-05-02 22:50                 ` David Miller
2007-05-02 19:40       ` David Miller
2007-05-02 21:27         ` Michael Chan
2007-05-02 21:45           ` David Miller
2007-05-02 23:28             ` Michael Chan
2007-05-02 22:48               ` David Miller [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=20070502.154802.26506902.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jeff@garzik.org \
    --cc=mchan@broadcom.com \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).