linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@mvista.com>
To: linuxppc-dev <linuxppc-dev@lists.linuxppc.org>
Subject: DMA mapping and loadable modules
Date: Thu, 08 Feb 2001 14:09:13 -0500	[thread overview]
Message-ID: <3A82EED9.59E1519D@mvista.com> (raw)


It's amazing how things like this happen.........Today, at least
three different instances of this bug appeared, including one of
my own.

There is a problem when loadable drivers with "static" data stuctures
try to determine the physical address for DMA.  The "virt_to_bus"
macro doesn't work for these (or for any dynamically allocated memory).
These drivers will work fine when compiled in, and break when loaded
as modules.

As part of the IBM4xx and MPC8xx updates I have hanging around in my
tree, I have modified the virt_to_bus and other macros to be a little
smarter, and work the same on all platforms.  Basically, if there isn't
a BAT or other large mapping, it will search the page tables for the
proper physical address.  It still doesn't work exactly correct on the
PMac, but I hope to have it done today.


	-- Dan

--

	I like MMUs because I don't have a real life.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2001-02-08 19:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-08 19:09 Dan Malek [this message]
2001-02-08 19:43 ` DMA mapping and loadable modules Roman Zippel

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=3A82EED9.59E1519D@mvista.com \
    --to=dan@mvista.com \
    --cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).