Subject: Re: for what ails your gem(4)
To: None <port-macppc@netbsd.org>
From: Allen Wong <allen@submoron.org>
List: port-macppc
Date: 04/12/2007 08:51:16
--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


Dave,

-> This may help.  Let me know.  I need to do more.
->=20

It didn't resolve the timeout problem while transferring large files.  The=
=20
"discarding oversize frame" are also still present but they don't seem to b=
e=20
malignant:

Apr 12 16:35:02 abel ntpd[467]: kernel time sync enabled 2001
Apr 12 16:37:08 abel /netbsd: gem0: device timeout
Apr 12 16:37:41 abel last message repeated 4 times
Apr 12 16:38:16 abel last message repeated 4 times

A few minutes after we ran "ifconfig gem0 down && ifconfig gem0 up" we have=
=20
this in the log:

Apr 12 16:46:31 abel /netbsd: gem0: discarding oversize frame (len=3D11834)
Apr 12 16:46:31 abel /netbsd: gem0: discarding oversize frame (len=3D13095)
Apr 12 16:46:33 abel last message repeated 2 times


There was also a failure applying one of the patches:

# patch -p0 < gem.c.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: gem.c
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|RCS file: /cvsroot/src/sys/dev/ic/gem.c,v
|retrieving revision 1.55
|retrieving revision 1.56
|diff -u -r1.55 -r1.56
|--- gem.c      12 Apr 2007 05:56:01 -0000      1.55
|+++ gem.c      12 Apr 2007 06:14:40 -0000      1.56
--------------------------
Patching file gem.c using Plan A...
Hunk #1 succeeded at 1 with fuzz 1.
Hunk #2 failed at 34.
Hunk #3 succeeded at 1474 (offset 1 line).
1 out of 3 hunks failed--saving rejects to gem.c.rej
done

# cat gem.c.rej
***************
*** 34,40 ****
   */
 =20
  #include <sys/cdefs.h>
- __KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.55 2007/04/12 05:56:01 dyoung Exp
$");
 =20
  #include "opt_inet.h"
  #include "bpfilter.h"
--- 34,40 ----
   */
 =20
  #include <sys/cdefs.h>
+ __KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.56 2007/04/12 06:14:40 dyoung Exp
$");
 =20
  #include "opt_inet.h"
  #include "bpfilter.h"


I edited gem.c and made the change manually then rebuilt the kernel and
rebooted.

Is anyone else running 4.0 BETA2 and not having this problem?  I'm open to
the suggest that this may be a hardware issue.

Allen
--=20
You have received an email.  Please reboot for the changes to take effect.
 8:20AM  up 21 days, 12:41, 1 user, load averages: 0.00, 0.00, 0.00

--oyUTqETQ0mS9luUI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFGHlV0aiDOxrzhkxgRAlaWAJ0WhWDZtcOeDcjNiLo2ymE/U4CK/wCfegX4
4nel93OFfqucRduJKeuDtqw=
=dwN3
-----END PGP SIGNATURE-----

--oyUTqETQ0mS9luUI--