From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: set@pobox.com (Paul)
Cc: linux-kernel@vger.kernel.org
Subject: Re: BUG: invalid MAX_DMA_ADDRESS macro for i386?
Date: Thu, 2 Aug 2001 15:19:56 +0100 (BST) [thread overview]
Message-ID: <E15SJKO-0000eP-00@the-village.bc.nu> (raw)
In-Reply-To: <20010801011651.K225@squish.home.loc> from "Paul" at Aug 01, 2001 01:16:52 AM
> Well, I have tracked down my problem. We see a comparison
> like this to determine whether to use a bounce buffer:
>
> if ( virt_to_bus(addr+buflen) >= MAX_DMA_ADDRESS) {
> ...(use a bounce buffer 'cause that addr is not dma-able)...
>
> This is not working, because MAX_DMA_ADDRESS is defined
> so:
>
> ./include/asm-i386/dma.h:
> #define MAX_DMA_ADDRESS (PAGE_OFFSET+0x1000000)
MAX_DMA_ADDRESS is intended for checking virtual addresses not bus
addresses.
Alan
prev parent reply other threads:[~2001-08-02 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-01 5:16 Paul
2001-08-02 14:19 ` Alan Cox [this message]
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=E15SJKO-0000eP-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=set@pobox.com \
/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®