NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-i386/46808: 6.0_BETA2 install crashes on VIA VT6202 detection
The following reply was made to PR port-i386/46808; it has been noted by GNATS.
From: "jc.lynx" <jc.lynx%laposte.net@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>,
gnats-bugs%NetBSD.org@localhost,
port-i386-maintainer%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-i386/46808: 6.0_BETA2 install crashes on VIA VT6202
detection
Date: Sat, 25 Aug 2012 23:21:48 +0200
------=_Part_1067438_1348085712.1345929708278
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
OK. I've installed NetBSD on another machine and done the following alterat=
ions to ehci_pci.c
Replaced :
const u_int maxncomp =3D EHCI_HCS_N_CC(EREAD4(&sc->sc, EHCI_HCSPARAMS));
with :
const u_int vovo =3D EREAD4(&sc->sc, EHCI_HCSPARAMS);
const u_int maxncomp =3D EHCI_HCS_N_CC(vovo);
printf("maxncomp =3D %u\n", maxncomp);
printf("EREAD4(&sc->sc, EHCI_HCSPARAMS) =3D %x, vovo);
I hope I got the types right.
Anyway, I burned and booted boot.iso and got this :
maxncomp =3D 15
EREAD4(&sc->sc, EHCI_HCSPARAMS) =3D ffffffff
So, yeah, EHCI_HCS_N_CC(ffffffff), i.e. (ffffffff >> 12) & 0xf is 15, indee=
d greater than EHCI_COMPANION_MAX which is 8 ; but I guess that this ffffff=
is not the data we were looking for anyway.
I could not find code related to "special" VT6202 handling in other BSD's c=
ode, except an unrelated issue with EHCI polling frequency.
I suppose we now have to dig into how sc was initialised, or whether EREAD4=
(&sc->sc, EHCI_HCS_PARAMS) is the way to get what we were looking for on th=
is particular device.
Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3=
=A7a vous tente ?
Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net
------=_Part_1067438_1348085712.1345929708278
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
OK. I've installed NetBSD on another machine and done the following alterat=
ions to ehci_pci.c<br /><br />Replaced : <br /><br />const u_int maxncomp =
=3D EHCI_HCS_N_CC(EREAD4(&sc->sc, EHCI_HCSPARAMS));<br /><br />with =
:<br /><br />const u_int vovo =3D EREAD4(&sc->sc, EHCI_HCSPARAMS);<b=
r />const u_int maxncomp =3D EHCI_HCS_N_CC(vovo);<br />printf("maxncom=
p =3D %u\n", maxncomp);<br />printf("EREAD4(&sc->sc, EHCI_=
HCSPARAMS) =3D %x, vovo);<br /><br />I hope I got the types right.<br />Any=
way, I burned and booted boot.iso and got this :<br /><br />maxncomp =3D 15=
<br />EREAD4(&sc->sc, EHCI_HCSPARAMS) =3D ffffffff<br /><br />So, ye=
ah, EHCI_HCS_N_CC(ffffffff), i.e. (ffffffff >> 12) & 0xf is 15, i=
ndeed greater than EHCI_COMPANION_MAX which is 8 ; but I guess that this ff=
ffff is not the data we were looking for anyway.<br />I could not find code=
related to "special" VT6202 handling in other BSD's code, except=
an unrelated issue with EHCI polling frequency.<br />I suppose we now have=
to dig into how sc was initialised, or whether EREAD4(&sc->sc, EHCI=
_HCS_PARAMS) is the way to get what we were looking for on this particular =
device.
------=_Part_1067438_1348085712.1345929708278--
Home |
Main Index |
Thread Index |
Old Index