Subject: Re: kern/31164
To: ITOH Yasufumi <itohy@NetBSD.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 12/04/2005 12:32:41
On Dec 4, 10:31pm, itohy@NetBSD.org (ITOH Yasufumi) wrote:
-- Subject: Re: kern/31164

| christos@zoulas.com writes:
| > Index: aic_pcmcia.c
| > ===================================================================
| > RCS file: /cvsroot/src/sys/dev/pcmcia/aic_pcmcia.c,v
| > retrieving revision 1.32
| > diff -u -r1.32 aic_pcmcia.c
| > --- aic_pcmcia.c	4 Feb 2005 02:10:45 -0000	1.32
| > +++ aic_pcmcia.c	17 Nov 2005 03:42:26 -0000
| > @@ -106,6 +106,8 @@
| >  	    cfe->num_memspace != 0 ||
| >  	    cfe->num_iospace != 1)
| >  		return (EINVAL);
| > +
| > +	cfe->iomask = 0;			/* XXX: wrong */
| >  	return (0);
| >  }
| >  
| 
| This works for me too on current and 3.0 branch (old iomask was 0xA).
| The problem of "com at pcmcia" is also fixed by similar change.
| 
| Why this is marked as XXX?

We tracked this down to the way rbus allocation is done. The card request
is correct, but I think that the rbus bus space mapping is wrong.

christos