Subject: port-i386/14592: pci mem space small
To: None <gnats-bugs@gnats.netbsd.org>
From: None <keiji@hiemalis.org>
List: netbsd-bugs
Date: 11/16/2001 00:32:40
>Number:         14592
>Category:       port-i386
>Synopsis:       pci mem space small
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 15 07:34: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: Mon Nov 12 23:05:58 JST 2001 root@piment:/home/poker/NetBSD/src/sys/arch/i386/compile/PIMENT i386
Architecture: i386
Machine: i386
>Description:
The pci bus space map is small, a few pci device don't work.
So I want to change the default map size big.
>How-To-Repeat:
	
>Fix:
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 */
 
>Release-Note:
>Audit-Trail:
>Unformatted: