From: Kari Davidsson <d154402@cs.tut.fi>
Subject: Re: PCI mapping question
Date: Fri, 02 May 1997 11:18:28 +0300 [thread overview]
Message-ID: <d0b721d43867c8850ae05f3148f77ad4.axp-list@archive.invalid> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2571 bytes --]
jestabro@amt.tay1.dec.com wrote:
>
> >>> Hein Roehrig said:
snip snap
> Not quite...
>
> "virt_to_bus()" converts a kernel virtual address into an address a
> DMA-capable device can use to access host memory from off the PCI/ISA
> bus. For example, a SCSI driver would use "virt_to_bus()" to get an address
> that the controller could use at which to put a block off disk into memory.
>
> "bus_to_virt()" is usually used only by drivers whose controllers pass back
> an address they (the controller) used to put something into host memory,
> and now the driver needs to get at that data directly.
>
> The Alpha hardware (typically) has "DMA windows" on the PCI bus; these are
How are these "DMA windows" created. I am having a problem a making a
PCI
card read correctly from the host memory. Are they created automatically
when the buffer is kmalloced within the driver? When
kmalloc(size,GFP_BUFFER|GFP_DMA); is called?
I have been trying to figure "this" out but I guess reading kernel
source is not
my strongest point 8-). "this" was undefined untill now, I think my
problems are
related to these "DMA windows". At least my card is reading some
bulls*** from the
host memory 8-)
> (1 or more) ranges of PCI addresses which allow direct access off the bus
> into host memory. Usually, the range of PCI addresses from 1Gb to 2Gb-1
> is setup to correspond to host memory addresses 0 to 1Gb-1.
>
> Thus, "virt_to_bus()" takes a kernel virtual host memory address (usually :-),
> and converts it to physical, then adds the DMA window "base". The final
> address, when presented by a peripheral controller (like SCSI or Ethernet)
> onto the PCI bus, will trigger access to the desired host memory. Note that
> the final address is *not* directly usable by the kernel.
>
> Enough? :-)
Do you have some more? 8-)
>
> --Jay++
Thanks,
K.D.
--
*********************************************************************
* Kári Davíðsson * *
* Opiskelijankatu 4 F 330 * *
* 33720 Tampere * Your advertisement here. *
* Finland * Low prices. *
* Tel: + 358-(0)50-5225153 * *
* d154402@cs.tut.fi * *
*********************************************************************
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-05-02 8:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-02 8:18 Kari Davidsson [this message]
[not found] <199705020016.UAA00790@alpha0.estabrook.org>
1997-05-02 7:04 ` PCI mapping question Harald Koenig
1997-05-02 18:17 ` Nikita Schmidt
-- strict thread matches above, loose matches on Subject: below --
1997-05-02 14:52 Tim Miller
[not found] <Pine.SOL.3.96.970502152151.28130b-100000@hammer.thor.cam.ac.uk>
1997-05-02 14:35 ` Michal Jaegermann
1997-05-02 14:23 Paul Anderson
[not found] <3369F8E8.2781@agapesystems.com>
1997-05-02 14:22 ` Philip Blundell
1997-05-02 14:18 Paul Anderson
[not found] <19970502090409.14032@tat.physik.uni-tuebingen.de>
1997-05-02 13:55 ` jestabro
1997-05-01 22:08 Hein Roehrig
1997-05-01 15:16 ` jestabro
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox