From: Ian Romanick <idr@us.ibm.com>
To: Paul Mackerras <paulus@samba.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Special handling of sysfs device resource files?
Date: Wed, 12 Apr 2006 08:06:32 -0700 [thread overview]
Message-ID: <443D1778.5060803@us.ibm.com> (raw)
In-Reply-To: <17468.34286.730652.585388@cargo.ozlabs.ibm.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Mackerras wrote:
> Ian Romanick writes:
>
>>This seems to mostly work, but I am having one problem. I map the
>>region by opening the file with O_RDWR, then mmap with
>>(PROT_READ|PROT_WRITE) and MAP_SHARED. In all cases, the open and mmap
>>succeed. However, for I/O BARs, the resulting pointer from mmap is
>>invalid. Any access to it results in a segfault and GDB says it's "out
>>of range".
>
> On which architecture(s)?
I've only tried on x86-64 (an Athlon64 3000+ to be exact) so far.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQFEPRd4X1gOwKyEAw8RAhdxAKCX9Y/ju2jK7q5Wdzmb9kfwt9T3lwCbBwrq
BIRJkEIGqSOrXtkDC3/2Fts=
=mePG
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2006-04-12 15:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-11 21:25 Special handling of sysfs device resource files? Ian Romanick
2006-04-11 23:59 ` Ian Romanick
2006-04-12 17:14 ` Jesse Barnes
2006-04-12 17:20 ` Jesse Barnes
2006-04-12 4:45 ` Paul Mackerras
2006-04-12 15:06 ` Ian Romanick [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=443D1778.5060803@us.ibm.com \
--to=idr@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.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