From: Jens Axboe <axboe@suse.de>
To: Grant Grundler <grundler@puffin.external.hp.com>
Cc: "David S. Miller" <davem@redhat.com>,
linux-mm@kvack.org, parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] Re: parisc scatterlist doesn't want page/offset
Date: Fri, 16 Nov 2001 09:33:56 +0100 [thread overview]
Message-ID: <20011116093356.D27010@suse.de> (raw)
In-Reply-To: <200111160730.AAA18774@puffin.external.hp.com>
On Fri, Nov 16 2001, Grant Grundler wrote:
> Hi all,
> Could someone point me to any discussion about adding
> page/offset to struct scatterlist?
See lkml a couple months back, 32-bit dma etc discussion.
>
> To me, it looks like a half-assed step to support DMA to HIGHMEM
> on 32-bit arches. TBH, I'd like to see page/offset replace
> address in the pci_map* interfaces and struct scatterlist.
> But then replace it across the board so the DMA mapping code
> doesn't have to decide which field to use (KISS). This really
> belongs in 2.5 kernel.
It's not half-assed, it's needed. I would imagine that pci_map_single
etc stays though, although pci_map_page or pci_map_sg is the preferred
approach.
Regarding the patch -- please add a helper function to set the sg list
instead of introducing CONFIG_HIGHMEM all over the place. I'm assuming
you are missing the piece which leaves out page/offset for non-highmem,
if not you are really pedantic about saving a few cycles :-)
--
Jens Axboe
WARNING: multiple messages have this Message-ID (diff)
From: Jens Axboe <axboe@suse.de>
To: Grant Grundler <grundler@puffin.external.hp.com>
Cc: "David S. Miller" <davem@redhat.com>,
linux-mm@kvack.org, parisc-linux@lists.parisc-linux.org
Subject: Re: parisc scatterlist doesn't want page/offset
Date: Fri, 16 Nov 2001 09:33:56 +0100 [thread overview]
Message-ID: <20011116093356.D27010@suse.de> (raw)
In-Reply-To: <200111160730.AAA18774@puffin.external.hp.com>
On Fri, Nov 16 2001, Grant Grundler wrote:
> Hi all,
> Could someone point me to any discussion about adding
> page/offset to struct scatterlist?
See lkml a couple months back, 32-bit dma etc discussion.
>
> To me, it looks like a half-assed step to support DMA to HIGHMEM
> on 32-bit arches. TBH, I'd like to see page/offset replace
> address in the pci_map* interfaces and struct scatterlist.
> But then replace it across the board so the DMA mapping code
> doesn't have to decide which field to use (KISS). This really
> belongs in 2.5 kernel.
It's not half-assed, it's needed. I would imagine that pci_map_single
etc stays though, although pci_map_page or pci_map_sg is the preferred
approach.
Regarding the patch -- please add a helper function to set the sg list
instead of introducing CONFIG_HIGHMEM all over the place. I'm assuming
you are missing the piece which leaves out page/offset for non-highmem,
if not you are really pedantic about saving a few cycles :-)
--
Jens Axboe
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
next prev parent reply other threads:[~2001-11-16 8:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-16 7:30 [parisc-linux] parisc scatterlist doesn't want page/offset Grant Grundler
2001-11-16 7:30 ` Grant Grundler
2001-11-16 8:33 ` Jens Axboe [this message]
2001-11-16 8:33 ` Jens Axboe
2001-11-16 14:52 ` [parisc-linux] " David S. Miller
2001-11-16 14:52 ` David S. Miller
2001-11-16 15:04 ` [parisc-linux] " Matthew Wilcox
2001-11-16 15:04 ` Matthew Wilcox
2001-11-16 15:17 ` David S. Miller
2001-11-16 15:17 ` David S. Miller
2001-11-16 15:26 ` Matthew Wilcox
2001-11-16 15:26 ` Matthew Wilcox
2001-11-16 15:33 ` David S. Miller
2001-11-16 15:33 ` David S. Miller
2001-11-16 15:43 ` Matthew Wilcox
2001-11-16 15:43 ` Matthew Wilcox
2001-11-16 15:47 ` David S. Miller
2001-11-16 15:47 ` David S. Miller
2001-11-16 16:44 ` Grant Grundler
2001-11-16 16:44 ` Grant Grundler
2001-11-16 17:31 ` Alan Cox
2001-11-16 17:31 ` Alan Cox
2001-11-16 16:32 ` Grant Grundler
2001-11-16 16:32 ` Grant Grundler
2001-11-16 16:57 ` David S. Miller
2001-11-16 16:57 ` David S. Miller
2001-11-16 17:06 ` Grant Grundler
2001-11-16 17:06 ` Grant Grundler
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=20011116093356.D27010@suse.de \
--to=axboe@suse.de \
--cc=davem@redhat.com \
--cc=grundler@puffin.external.hp.com \
--cc=linux-mm@kvack.org \
--cc=parisc-linux@lists.parisc-linux.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.