From: Gerd Knorr <kraxel@bytesex.org>
To: linux-kernel@vger.kernel.org
Subject: Re: [UPDATE] 2.4.10-pre2 PCI64, API changes README
Date: 30 Aug 2001 12:34:11 GMT [thread overview]
Message-ID: <slrn9oscm3.4o6.kraxel@bytesex.org> (raw)
In-Reply-To: <20010829.181852.98555095.davem@redhat.com>
David S. Miller wrote:
>
> Ok, new patch up on kernel.org against 2.4.10-pre2:
>
> ftp.kernel.org:/pub/linux/kernel/davem/PCI64/pci64-2.4.10p2-1.patch.gz
>
> The major change in this release is that the API has been redone.
A maybe related issue:
My current bttv does zerocopy capture if you ask it for a video frame
using read(): locks memory with kiobufs, builds a scatterlist for the
locked pages, asks for bus addresses using pci_map_sg, then kick DMA.
These days I tried what happens if I start a PCI->PCI transfer this way:
Open the framebuffer device, mmap the framebuffer memory, then ask bttv
to blit one video frame to the framebuffer by passing the pointer of the
fb mapping to bttv's read() function.
Didn't work, looks like map_user_buf can deal with main memory only, but
not with I/O memory. It gave me NULL pointers in the iobuf page list.
Is there any way (portable) way to deal with this situation? I'd expect
I can get the physical address for the I/O memory by walking the page
tables, but then I'd have to translate that to a bus address somehow.
How PCI->PCI transfers are handled on architectures with a iommu? Do I
need a iommu entry for them?
Gerd
--
Damn lot people confuse usability and eye-candy.
next prev parent reply other threads:[~2001-08-30 12:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-30 1:18 [UPDATE] 2.4.10-pre2 PCI64, API changes README David S. Miller
2001-08-30 12:34 ` Gerd Knorr [this message]
2001-08-30 23:06 ` David S. Miller
2001-08-30 23:14 ` Alan Cox
2001-08-30 23:14 ` David S. Miller
2001-08-30 23:30 ` Alan Cox
2001-08-30 23:31 ` David S. Miller
2001-08-31 7:22 ` Gerd Knorr
2001-08-31 8:58 ` David S. Miller
2001-08-31 14:12 ` Alan Cox
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=slrn9oscm3.4o6.kraxel@bytesex.org \
--to=kraxel@bytesex.org \
--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