From: "thomas joseph" <thomascanny@yahoo.co.nz>
To: linux-kernel@vger.kernel.org
Subject: remap_page_range an caching
Date: Fri, 21 Mar 2003 01:08:24 +1200 (NZST) [thread overview]
Message-ID: <20030320130824.30748.qmail@web41304.mail.yahoo.com> (raw)
Hi All,
I am using remap_page_range to map a memory region
to user space. (This is a device memory mapped in
to kernel space by ioremap_nocache.)
I am setting the page protection flags as
_PAGE_PCD | _PAGE_PWT to disable caching as
specified in the documentation.
But when I try to read these device registers in the
user space it shows different values from
those of driver. I declared the necessary
members as volatile. But it still does not help.
When I try to read the register twice I seem to be
getting the correct value.
Like,
/* ulBWStatus is defined as volatile. */
status = pRpRegs->ulBStatus;
status = pRpRegs->ulBStatus;
This gives me the updated values. Could you
just help me if I am missing anything here.
D0 I need to insert a memory barrier in the user
space
before accessing these registers ?
If I do so then it looks like giving correct values
too.
Could somebody help to understand on what is
happening here.
Thanks in advance.
best regards,
--thomas
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.
reply other threads:[~2003-03-20 12:57 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=20030320130824.30748.qmail@web41304.mail.yahoo.com \
--to=thomascanny@yahoo.co.nz \
--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®