From: "Bryan O'Sullivan" <bos@pathscale.com>
To: linux-kernel <linux-kernel@vger.kernel.org>, Discuss@x86-64.org
Subject: Funnies with remap_pfn_range, x86_64, > 4GB RAM, kernels < 2.6.16
Date: Tue, 16 May 2006 09:41:46 -0700 [thread overview]
Message-ID: <1147797706.3801.40.camel@localhost.localdomain> (raw)
As I was preparing the ipath driver for submission, I got rid of our
accursed vmops->nopage routine and replaced it with the much simpler use
of remap_pfn_range.
Unfortunately, we've recently been testing this code on machines with
more than 4GB of memory, and found that it is not working reliably on
kernels older than 2.6.16. As far as I can tell, every prior kernel
back to 2.6.9 is affected.
The symptom occurs when we use remap_pfn_range to map some driver memory
(allocated with dma_alloc_coherent) into userspace, and get the hardware
to DMA into that memory range. The physical and virtual addresses all
look OK; the DMA from the hardware appears to succeed; but the pages
written to do not show any changes, most of the time (occasionally it
works, but we don't know why).
These problems do not occur with 2.6.16, so this looks like a kernel bug
that got fixed somewhere. What I'm wondering is (a) does anyone
remember fixing this, because I can't see anything obvious in the myriad
of likely contenders, and (b) has anyone else been faced with this
problem and found a workaround for older kernels?
Thanks,
<b
--
Bryan O'Sullivan <bos@pathscale.com>
reply other threads:[~2006-05-16 16:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1147797706.3801.40.camel@localhost.localdomain \
--to=bos@pathscale.com \
--cc=Discuss@x86-64.org \
--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 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.