From: "David S. Miller" <davem@davemloft.net>
To: michael.bishop@APPIQ.com
Cc: linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: Re: More info for DSM w/r/t sunffb on 2.6.15-rc6
Date: Fri, 23 Dec 2005 11:19:40 -0800 (PST) [thread overview]
Message-ID: <20051223.111940.17674086.davem@davemloft.net> (raw)
In-Reply-To: <DF925A10E7204748977502BECE3D11230100CD7C@exch02.appiq.com>
From: "Michael Bishop" <michael.bishop@APPIQ.com>
Date: Fri, 23 Dec 2005 11:23:36 -0500
> Bad pte = 1fa00600a88, process = X, vm_flags = 184473, vaddr = 7001e000
> Call Trace:
Strange, I thought we'd fixed this.
Aww crap....
Linus, X.org is doing a MAP_PRIVATE mmap() of these discontiguous
I/O mappings of the sparc frame buffer device it seems. So the
MAP_SHARED check in is_cow_mapping() doesn't pass.
Michael, does X.org work properly with your FFB card with 2.6.14 by
chance?
I really haven't used X.org on anything other than an ATI Radeon on
Sparc boxes, so it's highly possible that SunFFB support in X.org has
deteriorated into a non-working state due to not being looked after by
anyone.
Back to the MAP_SHARED issue, the culprit code in X.org can be fixed
but I know that this thing has been coded this way for years. It
goes like this (hw/xfree86/os-support/bus/Sbus.c:xf86MapSbusMem()):
ret = (pointer) mmap (NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE,
psdp->fd, off);
if (ret == (pointer) -1) {
ret = (pointer) mmap (NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED,
psdp->fd, off);
}
if (ret == (pointer) -1)
return NULL;
and that should be fixed to just be:
ret = (pointer) mmap (NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED,
psdp->fd, off);
if (ret == (pointer) -1)
return NULL;
Ie. use MAP_SHARED unconditionally.
next prev parent reply other threads:[~2005-12-23 19:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-23 16:23 Michael Bishop
2005-12-23 19:19 ` David S. Miller [this message]
2005-12-23 20:53 ` Linus Torvalds
2005-12-23 23:45 ` David S. Miller
2005-12-24 1:21 ` Hugh Dickins
2005-12-24 7:46 ` David S. Miller
2005-12-24 9:07 ` Hugh Dickins
2006-03-21 10:28 ` David S. Miller
2005-12-24 8:32 ` Linus Torvalds
2005-12-24 9:16 ` Hugh Dickins
2005-12-24 20:08 ` David S. Miller
[not found] <DF925A10E7204748977502BECE3D1123015C4DCE@exch02.appiq.com>
2005-12-24 8:29 ` Linus Torvalds
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=20051223.111940.17674086.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.bishop@APPIQ.com \
--cc=torvalds@osdl.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®