[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-arm
Subject:    Re: cubieboard sxie no broadcast packets visible
From:       John DiMarco <jdd () cs ! toronto ! edu>
Date:       2021-11-14 20:38:20
Message-ID: 20211114203820.F0A2D101915 () testapps ! cs ! toronto ! edu
[Download RAW message or body]

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <3715472.1636922300.1@testapps.cs.toronto.edu>

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.kettenis@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 <jdd@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  


------- =_aaaaaaaaaa0
Content-Type: message/rfc822
Content-ID: <3715472.1636922300.2@testapps.cs.toronto.edu>
Content-Description: original message

From mark.kettenis@xs4all.nl Mon Sep 20 09:54:08 2021
Return-path: <mark.kettenis@xs4all.nl>
Envelope-to: jdd@cs.toronto.edu
Delivery-date: Mon, 20 Sep 2021 09:54:08 -0400
Received: from alkyone.cs.toronto.edu ([128.100.3.121] ident=Debian-exim)
	by mailswitch.cs.toronto.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.90_1)
	(envelope-from <mark.kettenis@xs4all.nl>)
	id 1mSJkG-0001zH-A4
	for jdd@cs.toronto.edu; Mon, 20 Sep 2021 09:54:08 -0400
Received: from sibelius.xs4all.nl ([83.163.83.176])
	by alkyone.cs.toronto.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.90_1)
	(envelope-from <mark.kettenis@xs4all.nl>)
	id 1mSJkE-0001Pz-M5
	for jdd@cs.toronto.edu; Mon, 20 Sep 2021 09:54:07 -0400
Received: from localhost (bloch.sibelius.xs4all.nl [local])
	by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 735e4cff;
	Mon, 20 Sep 2021 15:53:50 +0200 (CEST)
Date: Mon, 20 Sep 2021 15:53:50 +0200 (CEST)
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: John DiMarco <jdd@cs.toronto.edu>
Cc: arm@openbsd.org
In-Reply-To: <20210920133425.EC1BF100C12@testapps.cs.toronto.edu> (message
	from John DiMarco on Mon, 20 Sep 2021 09:34:25 -0400)
Subject: Re: cubieboard sxie no broadcast packets visible
References: <20210919001818.8BF857A075E@apps0.cs.toronto.edu> \
                <20210920133425.EC1BF100C12@testapps.cs.toronto.edu>
Message-ID: <56146f4e7e216883@bloch.sibelius.xs4all.nl>
X-CS-Rspamd: scored 0.0
X-CS-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report='
 HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1500_1599 0, \
BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, ECARD_WORD 0, \
IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, MULTIPLE_REAL_RCPTS 0, \
NO_CTA_URI_FOUND 0, NO_URI_HTTPS 0, REFERENCES 0, SENDER_NO_AUTH 0, __ANY_URI 0, \
__BODY_NO_MAILTO 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, \
__DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FORWARDED_MSG 0, __FROM_DOMAIN_NOT_IN_BODY 0, \
__FROM_NAME_NOT_IN_BODY 0, __FUR_HEADER 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID \
0, __HAS_REFERENCES 0, __HEADER_ORDER_FROM 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, \
__MIME_TEXT_P 0, __MIME_TEXT_P1 0, __NO_HTML_TAG_RAW 0, __RCVD_FROM_DOMAIN 0, \
__REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, \
__SUBJ_REPLY 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NAME_DIFF_FROM_ACC 0, \
__TO_REAL_NAMES 0,  __URI_MAILTO 0, __URI_NO_WWW 0, __URI_NS '
X-Spam-Status: No, hits=-35.0 required=6.0
	tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      REPLY_WITH_QUOTES
	version=2.54
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.54 (1.174.2.17-2003-05-11-exp)

> From: John DiMarco <jdd@cs.toronto.edu>
> Date: Mon, 20 Sep 2021 09:34:25 -0400
> 
> In message <20210919001818.8BF857A075E@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 */


------- =_aaaaaaaaaa0
Content-Type: message/rfc822
Content-ID: <3715472.1636922300.3@testapps.cs.toronto.edu>
Content-Description: original message

From: John DiMarco <jdd@cs.toronto.edu>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
cc: arm@openbsd.org
Subject: Re: cubieboard sxie no broadcast packets visible
In-reply-to: <56146f4e7e216883@bloch.sibelius.xs4all.nl>
References: <20210919001818.8BF857A075E@apps0.cs.toronto.edu> \
<20210920133425.EC1BF100C12@testapps.cs.toronto.edu> \
                <56146f4e7e216883@bloch.sibelius.xs4all.nl>
Comments: In-reply-to Mark Kettenis <mark.kettenis@xs4all.nl>
   message dated "Mon, 20 Sep 2021 15:53:50 +0200."
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <2694588.1632148226.1@testapps.cs.toronto.edu>
Date: Mon, 20 Sep 2021 10:30:27 -0400

In message <56146f4e7e216883@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 <jdd@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  

------- =_aaaaaaaaaa0
Content-Type: message/rfc822
Content-ID: <3715472.1636922300.4@testapps.cs.toronto.edu>
Content-Description: original message

From jdd@cs.toronto.edu Sat Sep 18 20:18:20 2021
Return-path: <jdd@cs.toronto.edu>
Envelope-to: jdd@cs.toronto.edu
Delivery-date: Sat, 18 Sep 2021 20:18:20 -0400
Received: from cliff.cs.toronto.edu ([128.100.3.120] ident=Debian-exim)
	by mailswitch.cs.toronto.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.90_1)
	(envelope-from <jdd@cs.toronto.edu>)
	id 1mRkXE-0007gP-6s
	for jdd@cs.toronto.edu; Sat, 18 Sep 2021 20:18:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=cs.toronto.edu; s=cs202005; h=From:Date:Message-Id:
	Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:Subject:To:Sender:
	Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender
	:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:
	List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
	 bh=w/XfRV8p8u9368KSTf4OWHfZSDQ7p2Kujzbyt94CcMY=; b=kyT6kjX8ERE2lfABU+MshBjqA
	U9NX1tUhtvK/Gs8PU80MsnHka26RD6x9PPg30dYGtDdxOxfCFU1Aoa8stCTIHEBHN+KqwiS6vLehA
	xWhkA1K31Rzu5a3YsvYd3MGdmhbyOIV9jxlFKy77rORDWREeOBVUtW5biZeAEoA97LwpVMMKmyvy4
	7xcUglYgLyyNplxlkyuuZsIkjAlsIqWNjONUqj/4G2IvLqpMs3+BQvfvXpkVs9xHlRpBFwY5OvUH9
	/vEFghEAxAnTp2Qsxrs2H8ltkU8k8ZFNI1Ygt3pe7jH/GzfXBskdrCT5pTjbe6BnDnIi9aY98hcd5
	Qha75Fu2g==;
Received: from apps0.cs.toronto.edu ([128.100.3.40] ident=postfix)
	by cliff.cs.toronto.edu with esmtp (Exim 4.90_1)
	(envelope-from <jdd@cs.toronto.edu>)
	id 1mRkXC-0007gW-Iw; Sat, 18 Sep 2021 20:18:19 -0400
Received: by apps0.cs.toronto.edu (Postfix, from userid 929)
	id 8BF857A075E; Sat, 18 Sep 2021 20:18:18 -0400 (EDT)
To: arm@openbsd.org
Subject: cubieboard sxie no broadcast packets visible
Cc: jdd@cs.toronto.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="ANSI_X3.4-1968"
Content-Transfer-Encoding: 8bit
Message-Id: <20210919001818.8BF857A075E@apps0.cs.toronto.edu>
Date: Sat, 18 Sep 2021 20:18:18 -0400 (EDT)
From: John DiMarco <jdd@cs.toronto.edu>
X-Spam-Status: No, hits=-135.0 required=6.0
	tests=BAYES_01,USER_IN_WHITELIST
	version=2.54
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.54 (1.174.2.17-2003-05-11-exp)

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 <jdd@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  


------- =_aaaaaaaaaa0--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic