Subject: Re: SPARCbook and PCMCIA
To: None <christer@a-son.net>
From: Michael <macallan18@earthlink.net>
List: port-sparc
Date: 06/28/2005 07:16:22
--Signature_Tue__28_Jun_2005_07_16_22_-0400_C5EB6QAdQ_Uncesj
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> > Pause-R doesn't work?
>=20
> Didn't try Pause-R but Pause-A doesn't.

Pause-R is handles entirely by the microcontroller, Pause-A needs an
operating system or firmware to respond.

> > > I have two PCMCIA's, one is a Xircom ethernet card, the other is a
> > > modem, Diva. I get the same result with either one or both
> > > inserted.
> >=20
> > The kernel doesn't contain drivers for these cards.
>=20
> OK, but I figured they would be recognized.

Yes, they should.

> > > cpu_Debugger(0xf01e3ce8, 0xf0189a74, 0xfe435000, 0xf286b980,
> > > 0x100, 0xf0202000) at
> > > netbsd:mem_access_fault4m+0x148
> > > mem_access_fault4m(0x29, 0xb36, 0xfe435000, 0xf286ba28,
> > > 0xf286bca4, 0xf0189a74) at 0xf0006254
> > > 0xf0006254(0xf04f4800, 0xfe435000, 0x0, 0x0, 0x400, 0xf286bca0) at
> > > netbsd:pcmcia_scan_cis+0xc8
> >=20
> > Ouch, that's coming from the machine-independent PCMCIA code, it
> > tries to identify the card. Could you send me the full dmesg output?
>=20
> I'll give it a go tonight, I need to setup a serial console or ssh or
> something. The debug output is manually typed while reading from the
> screen of the 3TX.

Umm, sorry for being ambiguous - I meant the dmesg outout without any
card inserted. Apparently, when identifying a card, the PCMCIA code
tries to access some address range without any memory or device mapped
there, so I guess something must have gone wrong when attaching /
setting up the tslot driver and whatever it said should contain some
hint. It may even be a firmware difference causing this.

Besides that I found a bug in the driver which is a pretty likely
candidate ( the driver didn't bail out when it fails read the PCMCIA
controller's address ranges from the device tree. If you're setting up a
serial console - please send me the .attributes output of
/iommu/sbus/ts102 on your machine's firmware ). I'm building a new
test kernel now ( this time I'll include a driver for PCMCIA modems - no
idea which driver would support the Xircom card though )
It should show up as
ftp://ftp.netbsd.org/pub/NetBSD/misc/macallan/sparc/SPARCbook3GX_06_28.bz2
fairly soon, hopefully it won't crash your machine anymore.

have fun
Michael

--Signature_Tue__28_Jun_2005_07_16_22_-0400_C5EB6QAdQ_Uncesj
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQsExh8pnzkX8Yg2nAQKQtwgAt752YsqvqvgfQS3299vx6r0xr//mgb1S
lIsJeUAS1TFmslhKe04dG8ROOa2OGkOT2GBmhQn0Vnt0yK88xo4JgkBkFPYV3j/z
v8ANUUzSgl8LxF1rxISpHgH+cQ2fFfrRUbqi8R9Rh7+tVJxd7NJg5Qqr1ZasuTTl
Eit3VewzV6s6PUyLffQnlQh1K8KWM4OndR49FHg/VXjNM9TzKJJc2RT3Wx01McAW
uF8DDyg/OIWyLWwD2TZnK+aQKXfvtD3YxogJ6YNVvJ3a141o9xiqWji9j96qNetb
pcsteSzXHqVdr8kpZbp+6GFWQ/XzI8+vLuG9b3oy9Sfb0S0a7LNDxA==
=GWQD
-----END PGP SIGNATURE-----

--Signature_Tue__28_Jun_2005_07_16_22_-0400_C5EB6QAdQ_Uncesj--