All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: "Måns Rullgård" <mru@users.sourceforge.net>,
	linux-kernel@vger.kernel.org
Subject: Re: USB and DMA on Alpha with 2.6.0-test7
Date: Fri, 10 Oct 2003 14:31:04 +0100	[thread overview]
Message-ID: <20031010133104.GE28224@mail.shareable.org> (raw)
In-Reply-To: <20031010144710.A1396@jurassic.park.msu.ru>

Ivan Kokshaysky wrote:
> On Fri, Oct 10, 2003 at 11:22:06AM +0200, Måns Rullgård wrote:
> > Yesterday, I compiled 2.6.0-test7 for one of my Alpha boxes.  I have
> > an AX8817X based USB ethernet adaptor connected to it (it's short on
> > PCI slots), so I compiled the usbnet module.  When I loaded usbnet, I
> > got a BUG at include/asm-generic/dma-mapping.h:19.  Apparently, DMA
> > setup only works with PCI here.  How should this be fixed?  It worked
> > with -test4, albeit slowly, for other reasons.
> 
> Well, the usage of dma_supported() in usbnet.c is wrong even for i386.
> USB device doesn't do DMA, it's USB controller what does. The driver should
> check dma_mask of the parent device instead, something like this:
> 
> 	// possible with some EHCI controllers
> 	if (*udev->dev->parent->dma_mask == 0xffffffffffffffffULL)
> 		net->features |= NETIF_F_HIGHDMA;

Isn't the device's dma_mask set equal to the controller's dma_mask
automatically?

What happens if it's on a hub, or a hub on a hub?  Then the parent
isn't the controller, is it?

-- Jamie

  parent reply	other threads:[~2003-10-10 13:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10  9:22 USB and DMA on Alpha with 2.6.0-test7 Måns Rullgård
2003-10-10 10:47 ` Ivan Kokshaysky
2003-10-10 11:38   ` Måns Rullgård
2003-10-10 13:31   ` Jamie Lokier [this message]
2003-10-10 13:41     ` Ivan Kokshaysky
2003-10-10 16:41       ` Måns Rullgård
  -- strict thread matches above, loose matches on Subject: below --
2003-10-10 17:18 David Brownell
2003-10-10 18:19 ` Ivan Kokshaysky
2003-10-10 18:45   ` Måns Rullgård
2003-10-10 18:59     ` Ivan Kokshaysky
2003-10-10 20:15       ` David Brownell
2003-10-10 19:43 ` David Brownell
2003-10-11 13:27   ` Ivan Kokshaysky
2003-10-11 16:26     ` David Brownell
2003-10-11 23:03       ` David Brownell

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=20031010133104.GE28224@mail.shareable.org \
    --to=jamie@shareable.org \
    --cc=ink@jurassic.park.msu.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mru@users.sourceforge.net \
    /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.