Subject: port-i386/14556: port-i386 i82365_pci.c memsize problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <keiji@hiemalis.org>
List: netbsd-bugs
Date: 11/12/2001 21:45:43
>Number:         14556
>Category:       port-i386
>Synopsis:       memsize problem on 535E
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 12 04:47:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Wada Keiji
>Release:        NetBSD 1.5Y
>Organization:
--------
Wada Keiji
mailto:	keiji@hiemalis.org
>Environment:
	
	
System: NetBSD piment 1.5Y NetBSD 1.5Y (PIMENT) #0: Sat Oct 13 01:32:10 JST 2001 root@poker:/home/ftp/pub/NetBSD/NetBSD-current/src/sys/arch/i386/compile/PIMENT i386
Architecture: i386
Machine: i386
>Description:
I want to use TokenRing Card on ThinkPad 535E. but i82365_pci's mem size is
little. TokenRing Card need more much memory.
>How-To-Repeat:
below i82365_pci.c's patch.
src/sys/dev/pci/i82365_pci.c
--- i82365_pci.c.orig	Thu Feb 24 12:42:44 2000
+++ i82365_pci.c	Mon Aug 27 01:23:26 2001
@@ -138,11 +138,11 @@
 	 */
 
 	/* Map mem space. */
-	if (bus_space_map(memt, 0xd0000, 0x4000, 0, &memh))
+	if (bus_space_map(memt, 0xd0000, 0x8000, 0, &memh))
 		panic("pcic_pci_attach: can't map mem space");
 
 	sc->membase = 0xd0000;
-	sc->subregionmask = (1 << (0x4000 / PCIC_MEM_PAGESIZE)) - 1;
+	sc->subregionmask = (1 << (0x8000 / PCIC_MEM_PAGESIZE)) - 1;
 
 	/* same deal for io allocation */
 
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: