I noticed the same problem (sxie driver can't see broadcasts) in OpenBSD
7.0 on my cubieboard that I reported a couple of months ago (see attached).
Mark Kettenis <mark.kette...@xs4all.nl> supplied a simple patch (attached)
to sxie.c which fixed the problem. It looks to me like the patch didn't make it
into 7.0. It's perhaps not surprising since I reported the problem in
mid Sept and 7.0 came out in Oct.
No worries, I'll apply it again, but is the fix planned to be added to the
official sources at some point? I'd like to avoid patching my cubieboard
each release if I can avoid it.
Thanks,
John
--
John DiMarco <j...@cs.toronto.edu> http://www.cs.toronto.edu/~jdd
IT Director, Computer Science Department, University of Toronto
Office: BA4252 Phone:1-416-978-5300 Fax:1-416-946-5464
--- Begin Message ---
> From: John DiMarco <j...@cs.toronto.edu>
> Date: Mon, 20 Sep 2021 09:34:25 -0400
>
> In message <20210919001818.8bf857a0...@apps0.cs.toronto.edu>I wrote:
> >I dug out my old cubieboard (the original Allwinner A10 version) and put
> >openbsd 6.9 on it. It works fine except for one thing: the network card
> >(sxie0) doesn't seem to be able to see any broadcast packets. This breaks
> >arp: nothing can talk to the cubieboard over the network until the cubieboard
> >first talks to it.
> >
> >"tcpdump -i sxie0 broadcast" shows nothing despite plenty of broadcast
> >packets on the network.
>
> I tried a realtek USB to ethernet adapter, just to see if the problem is
> specific to the sxie driver. The realtek works (broadcasts are visible,
> arp works) so I suspect it is an sxie driver issue.
Hi John,
This doesn't surprise me; sxie(4) isn't in great shape and has lots of
XXX comments. Does the diff below help?
Cheers,
Mark
Index: arch/armv7/sunxi/sxie.c
===================================================================
RCS file: /cvs/src/sys/arch/armv7/sunxi/sxie.c,v
retrieving revision 1.32
diff -u -p -r1.32 sxie.c
--- arch/armv7/sunxi/sxie.c 25 Mar 2021 04:12:01 -0000 1.32
+++ arch/armv7/sunxi/sxie.c 20 Sep 2021 13:52:29 -0000
@@ -347,6 +347,7 @@ sxie_setup_interface(struct sxie_softc *
SXIE_RXPCRCE | SXIE_RXPLE | SXIE_RXMHF | SXIE_RXSAF |
SXIE_RXSAIF;
set_m = SXIE_RXPOR | SXIE_RXUCAD | SXIE_RXDAF | SXIE_RXBCO;
+ set_m |= SXI_RXMCO;
SXICMS4(sc, SXIE_RXCR, clr_m, set_m);
/* configure MAC */
--- End Message ---
--- Begin Message ---
In message <56146f4e7e216...@bloch.sibelius.xs4all.nl>you write:
>This doesn't surprise me; sxie(4) isn't in great shape and has lots of
>XXX comments. Does the diff below help?
Yes, it does. Once I fixed the typo (it was clear you meant SXIM_RXMCO
not SXI_RXMCO) the change fixes the problem entirely: arp now works,
and tcpdump broadcast works too. Thank you!
BTW, sxie did perform not too badly, much better than when I last tried it a
few years ago; large scps in the order of 4-6MB/s so it is getting better.
Regards
John
--
John DiMarco <j...@cs.toronto.edu> http://www.cs.toronto.edu/~jdd
IT Director, Computer Science Department, University of Toronto
Office: BA4252 Phone:1-416-978-5300 Fax:1-416-946-5464
--- End Message ---
--- Begin Message ---
I dug out my old cubieboard (the original Allwinner A10 version) and put
openbsd 6.9 on it. It works fine except for one thing: the network card
(sxie0) doesn't seem to be able to see any broadcast packets. This breaks
arp: nothing can talk to the cubieboard over the network until the cubieboard
first talks to it.
"tcpdump -i sxie0 broadcast" shows nothing despite plenty of broadcast
packets on the network.
Is this a known issue?
Regards,
John
--
John DiMarco <j...@cs.toronto.edu> http://www.cs.toronto.edu/~jdd
IT Director, Computer Science Department, University of Toronto
Office: BA4252 Phone:1-416-978-5300 Fax:1-416-946-5464
--- End Message ---