All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Breuer <breuerr@mc.net>
To: sparclinux@vger.kernel.org
Subject: Re: Xorg doesn't work on the cg3
Date: Sat, 12 Feb 2005 06:10:00 +0000	[thread overview]
Message-ID: <420D9DB8.8040706@mc.net> (raw)
In-Reply-To: <1108062924.3919.22.camel@localhost.localdomain>

Tom 'spot' Callaway wrote:
> But the cg3 remains stubborn.

I came upon this when comparing the mmap address for cg14 and cg3:
cg14.c:	.voff	= CG3_MMAP_OFFSET,
cg3.c:	.poff	= CG3_MMAP_OFFSET,

I have appended a patch to squash this bug.  But a question remains,
how did this bug go undetected like this?  Either the mmap should
have returned an error, or we should have got a segmentation fault
on writes, but it seems that neither one happened.  Any ideas?

Bob


--- linux-2.6.10-clean/drivers/video/cg3.c	2005-01-12 00:11:02.000000000 -0600
+++ linux-2.6.10/drivers/video/cg3.c	2005-02-11 23:33:54.000000000 -0600
@@ -222,8 +222,8 @@ cg3_blank(int blank, struct fb_info *inf

  static struct sbus_mmap_map cg3_mmap_map[] = {
  	{
-		.poff	= CG3_MMAP_OFFSET,
-		.voff	= CG3_RAM_OFFSET,
+		.voff	= CG3_MMAP_OFFSET,
+		.poff	= CG3_RAM_OFFSET,
  		.size	= SBUS_MMAP_FBSIZE(1)
  	},
  	{ .size = 0 }

  reply	other threads:[~2005-02-12  6:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 19:15 Xorg doesn't work on the cg3 Tom 'spot' Callaway
2005-02-12  6:10 ` Bob Breuer [this message]
2005-02-12  7:44 ` David S. Miller
2005-02-12 13:49 ` Tom 'spot' Callaway
2005-02-12 19:47 ` David S. Miller

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=420D9DB8.8040706@mc.net \
    --to=breuerr@mc.net \
    --cc=sparclinux@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.