From: Francois Romieu <romieu@fr.zoreil.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers/net/rcpci45 DMA mapping API conversion
Date: Sat, 19 Apr 2003 22:43:50 +0200 [thread overview]
Message-ID: <20030419224350.B3020@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <3EA1ACDD.4090306@pobox.com>; from jgarzik@pobox.com on Sat, Apr 19, 2003 at 04:09:01PM -0400
Jeff Garzik <jgarzik@pobox.com> :
[...]
> Francois Romieu wrote:
[...]
> > Jeff Garzik <jgarzik@pobox.com> :
> > [...]
> >
> >>Ok, I finally got around to attacking this one. Your patch looked ok to
> >>me until I noticed one detail:
> >>
> >> pDpa->msgbuf = kmalloc (MSG_BUF_SIZE, GFP_DMA | GFP_KERNEL);
> >>
> >>The GFP_DMA tag indicates that we can't just use pci_alloc_consistent in
> >>the normal way, as we lose the GFP_DMA designator.
> >
> >
> > Does it mean the usual pci_set_dma_mask() cooking or something more
> > elaborate ?
>
>
> Reading dma_alloc_coherent() in arch/i386/kernel/pci-dma.c, it does
> appear that would be sufficient...
I'll cook something like that then.
Anyway, I'm curious to know whether someone[1] can come with a specific mask
for this device or (even better) say that the GFP_DMA wasn't really needed in
the first place.
[1] driver claims:
** Ported to 2.1.x by Alan Cox 1998/12/9.
Any hint Mr Cox ?
--
Ueimor
next prev parent reply other threads:[~2003-04-19 20:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-05 13:45 Francois Romieu
2003-04-19 19:01 ` Jeff Garzik
2003-04-19 19:55 ` Francois Romieu
2003-04-19 20:09 ` Jeff Garzik
2003-04-19 20:43 ` Francois Romieu [this message]
2003-04-19 19:04 ` Jeff Garzik
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=20030419224350.B3020@electric-eye.fr.zoreil.com \
--to=romieu@fr.zoreil.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jgarzik@pobox.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
all inboxes | Powered by JetHome®