Subject: port-i386/12487: "pciide0:0:0: lost interrupt" with Toshiba NotePC
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kanaoka@ann.hi-ho.ne.jp>
List: netbsd-bugs
Date: 03/27/2001 22:05:41
>Number:         12487
>Category:       port-i386
>Synopsis:       "pciide0:0:0: lost interrupt" with Toshiba NotePC
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 27 22:06:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Masanori Kanaoka
>Release:        NetBSD-current(1.5T)
>Organization:
>Environment:
NetBSD kana1.ann.hi-ho.ne.jp 1.5T NetBSD 1.5T (PCIBIOS) #1: Wed Mar 28 13:58:11 JST 2001     root@kana1.ann.hi-ho.ne.jp:/usr/src/sys/arch/i386/compile/PCIBIOS i386

>Description:
My Note PC is Toshiba Satellite 2550X

I installed NetBSD-1.4.1 and update NetBSD-current by "make build".
My Note PC works fine for me Under NetBSD-1.5S.

Last week,To change Disk Partition Size, I do "Fresh install" with
NetBSD-1.5T.

Then, I have a problem that "pciide0:0:0 lost interrpt".
I searched current-users and found next articles.

	Subject: UBC breaks my IDE disk!?!
	From: Urban Boquist <urban@boquist.net>
	To: current-users@netbsd.org
	Date: Sat, 03 Feb 2001 12:02:38 +0100

	Subject: bug of arch/i386/i386/machdep.c?
	From: Araki Ken <j00v0113@ip.media.kyoto-u.ac.jp>
	To: current-users@netbsd.org
	Date: Wed, 07 Feb 2001 00:24:05 +0900

Thanks a lot "Araki Ken" and "Urban Boquist" for fix this problem.

From "Advanced Configurration and Power Interface Specification"
	"Rev 2.0 July 27,2000"
	"9.3.2 BIOS Initialization of Memory. page 236"

   640K - 1MB (0x9fc00 -- 0xfffff) 
   Compatibility Holes. 
	Holes within memory space that allow access to be
	directed to the PC-compatible frame buffer (A0000h-BFFFFh),
	to adapter ROM space (C0000h-DFFFFh), and to 
	system BIOS space (E0000h-FFFFFh).	
	
I think it need avoid compatibility holes "0xa0000 - 0xfffff".
>How-To-Repeat:
Fresh Install NetBSD-current to Toshiba NotePC.
>Fix:
Index: machdep.c
===================================================================
RCS file: /ftp/cvs/syssrc/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.430
diff -u -r1.430 machdep.c
--- machdep.c   2001/03/15 06:10:40     1.430
+++ machdep.c   2001/03/28 02:36:19
@@ -1866,6 +1866,18 @@
                        }
 
                        /*
+                        * XXX aviod Compatibility Holes
+                        *      PC-compatible frame buffer 0xa0000-0xbffff  
+                        *      adapter ROM space          0xc0000-0xdffff  
+                        *      system BIOS space          0xe0000-0xfffff  
+                        */
+                       if (bim->entry[x].addr >= 0xa0000 &&
+                           bim->entry[x].addr <= 0xfffff) {
+                               printf("Skip Compatibility Holes...\n");
+                               continue;
+                       }
+
+                       /*
                         * Sanity check the entry.
                         * XXX Need to handle uint64_t in extent code
                         * XXX and 64-bit physical addresses in i386

>Release-Note:
>Audit-Trail:
>Unformatted: