All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Matthew Wilcox <willy@debian.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Proposal for new generic device API: dma_get_required_mask()
Date: 17 Jun 2004 15:12:17 -0500	[thread overview]
Message-ID: <1087503138.1795.60.camel@mulgrave> (raw)
In-Reply-To: <20040617152818.GZ20511@parcelfarce.linux.theplanet.co.uk>

On Thu, 2004-06-17 at 10:28, Matthew Wilcox wrote:
> So let's look at the sym2 implementation to see how this would work.
> A straight diff -u is not terribly helpful, So let's try a more verbose
> context diff:

actually, no.  I'm proposing an additional API, not a modification to
dma_set_mask(), so the new code would read

       struct pci_dev *pdev = &np->s.device;
 
        if (np->features & FE_DAC) {
               if (dma_set_mask(&pdev->dev, 0xffffffffffULL))
	               if (dma_get_required_mask(&pdev->dev) > 0xffffffffUL)
        	               goto use_dac;
		
        }
 
       dma_set_mask(&pdev->dev, 0xffffffffUL);
        return 0;
  
  use_dac:
       np->use_dac = 1;
       printf_info("%s: using 64 bit DMA addressing\n", sym_name(np));
       return 0;

James



  reply	other threads:[~2004-06-17 20:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-17 14:08 Proposal for new generic device API: dma_get_required_mask() James Bottomley
2004-06-17 14:51 ` Meelis Roos
2004-06-17 15:28 ` Matthew Wilcox
2004-06-17 20:12   ` James Bottomley [this message]
2004-06-18  0:46 ` Krzysztof Halasa
2004-06-18  1:45   ` James Bottomley
2004-06-18 23:07     ` Krzysztof Halasa
2004-06-19 15:00       ` James Bottomley
2004-06-19 23:39         ` Krzysztof Halasa
2004-06-20 16:56           ` James Bottomley
2004-06-18  9:21   ` Russell King
2004-06-18 23:10     ` Krzysztof Halasa
2004-06-19 20:22       ` Russell King
2004-06-20  0:00         ` Krzysztof Halasa
2004-06-20 19:47           ` Russell King
2004-06-23 19:32             ` Krzysztof Halasa
2004-06-18  5:59 ` Jeremy Higdon
2004-06-18 14:19   ` James Bottomley
  -- strict thread matches above, loose matches on Subject: below --
2004-06-17 14:08 James Bottomley
2004-06-17 14:52 Salyzyn, Mark

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=1087503138.1795.60.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=willy@debian.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.