Subject: port-mac68k/3501: ite is not configured on machines with fboff != 0
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 04/16/1997 03:33:33
>Number:         3501
>Category:       port-mac68k
>Synopsis:       ite is not configured on machines with fboff != 0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 16 01:50:01 1997
>Last-Modified:
>Originator:     Dave Huang
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD-current as of April 15, 1997
>Environment:
	
System: NetBSD gedd-ser.metonymy.com 1.2D NetBSD 1.2D (GEDD) #228: Wed Apr 16 03:10:14 CDT 1997     khym@dahan.metonymy.com:/usr/src.local/sys/arch/mac68k/compile/GEDD mac68k

>Description:
The ite console device doesn't get configured on machines that have a
framebuffer address that isn't a multiple of the page size (i.e. fboff in
the grfmode structure is non-zero).

>How-To-Repeat:
Boot a kernel on, say, a 660av and notice the ite0 not configured message.

>Fix:
--- /usr/src/sys/arch/mac68k/dev/ite.c	Mon Apr 14 06:26:01 1997
+++ ite.c	Wed Apr 16 01:51:25 1997
@@ -934,7 +934,7 @@
 
 	if (strcmp(ga->ga_name, "ite"))
 		return 0;
-	pa = pmap_extract(pmap_kernel(), (vm_offset_t) gm->fbbase);
+	pa = pmap_extract(pmap_kernel(), (vm_offset_t) gm->fbbase + gm->fboff);
 
 	return (pa == (vm_offset_t) mac68k_vidphys);
 }

>Audit-Trail:
>Unformatted: