mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Baumann <baumann@kip.uni-heidelberg.de>
To: linux-kernel@vger.kernel.org
Subject: Re: Problem with DMA buffer (in 2.2.15)
Date: Thu, 22 Feb 2001 17:24:58 +0100	[thread overview]
Message-ID: <20010222172458.A9717@kip.uni-heidelberg.de> (raw)

I messed up my subscription to this list yesterday so any answer to my question
didn't reach me (I looked through the archive up to 20:50 yesterday).
Now as I read my question again I decided to add some more details.

>But when reading the buffer isn't allocated
This is of course rubbish. I meant the buffer isn't initialized.

Some more details about what I'm doing:
I have a PCI board with 1M of RAM and a PLX9080 on it (and some more chips 
which don't matter here). So far I have established normal communication with
the board (to program the PLX etc.). Now I want to write larger junks of data
to the RAM. So I startet to resolve the physical addresses of the user space
data to generate a chain list. Everything works fine for writing to the RAM.
The problem is reading. If I allocate a new buffer for reading back it isn't
of course not yet mapped to physical memory. The "quick and dirty"(tm) hack
was writing a zero to each buffer element to get it mapped. The better version
is to do this in steps of PAGE_SIZE. What I'm looking for is a kernel routine
to force the mapping of previous unmapped pages. Browsing through the source
in mm/ I found make_pages_present(). Could this be the solution? I hadn't the 
time to try it out yet.


Christoph

-- 
**********************************************************
* Christoph Baumann                                      *
* Kirchhoff-Institut für Physik - Uni Heidelberg         *
* Mail: baumann@kip.uni-heidelberg.de                    *
* Phone: ++49-6221-54-4329                               *
**********************************************************


             reply	other threads:[~2001-02-22 16:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-22 16:24 Christoph Baumann [this message]
2001-02-22 16:38 ` Norbert Roos
2001-02-22 17:20   ` Christoph Baumann
  -- strict thread matches above, loose matches on Subject: below --
2001-02-21 17:12 Christoph Baumann

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=20010222172458.A9717@kip.uni-heidelberg.de \
    --to=baumann@kip.uni-heidelberg.de \
    --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

all inboxes | Powered by JetHome®