From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: jt@hpl.hp.com
Cc: Jaroslav Kysela <perex@suse.cz>,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.5.5] Conversion of hp100 to new PCI interface
Date: Tue, 26 Feb 2002 21:11:15 -0500 [thread overview]
Message-ID: <3C7C4043.893429A9@mandrakesoft.com> (raw)
In-Reply-To: <20020226174657.A18197@bougret.hpl.hp.com> <20020226175353.B18197@bougret.hpl.hp.com>
>
> + /* Conversion to new PCI API :
> + * The memory block we use, lp->page_vaddr, was DMA allocated via
> + * pci_alloc_consistent(), so we just need to "retreive" the
> + * original mapping to bus/phys address - Jean II */
> ringptr->pdl = pdlptr + 1;
> - ringptr->pdl_paddr = virt_to_bus(pdlptr + 1);
> + ringptr->pdl_paddr = virt_to_phys(pdlptr + 1);
Nope.. You need to use the mapping value obtained from
pci_alloc_consistent...
Note for ISA (and EISA and VLB) devices, you also call
pci_alloc_consistent. You pass NULL for the pci device.
Jeff
--
Jeff Garzik | "UNIX enhancements aren't."
Building 1024 | -- says /usr/games/fortune
MandrakeSoft |
next prev parent reply other threads:[~2002-02-27 2:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-27 1:46 [PATCH 2.5.5] Conversion of hp100 to new PCI interface Jean Tourrilhes
2002-02-27 1:53 ` Jean Tourrilhes
2002-02-27 2:11 ` Jeff Garzik [this message]
2002-02-27 2:24 ` Jean Tourrilhes
2002-02-27 3:03 ` Jeff Garzik
[not found] ` <3C7D87AD.A9A25027@mandrakesoft.com>
2002-03-04 20:06 ` Jean Tourrilhes
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=3C7C4043.893429A9@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@suse.cz \
/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.