NetBSD Problem Report #53637

From www@NetBSD.org  Fri Sep 28 16:48:40 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3F17C7A159
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Sep 2018 16:48:40 +0000 (UTC)
Message-Id: <20180928164839.129C77A276@mollari.NetBSD.org>
Date: Fri, 28 Sep 2018 16:48:39 +0000 (UTC)
From: e3ef13f4ff44@protonmail.com
Reply-To: e3ef13f4ff44@protonmail.com
To: gnats-bugs@NetBSD.org
Subject: no ethernet on Orange Pi One
X-Send-Pr-Version: www-1.0

>Number:         53637
>Category:       kern
>Synopsis:       no ethernet on Orange Pi One
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    aymeric
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 28 16:50:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Sat Jan 05 15:05:01 +0000 2019
>Originator:     e3ef13f4ff44
>Release:        HEAD, 27.09.2018
>Organization:
>Environment:
>Description:
There is no interface detected( initialization error ). Reverting this commit fixes the error.
>How-To-Repeat:
Just run NetBSD
>Fix:
Revert this commit http://mail-index.netbsd.org/source-changes/2018/09/17/msg099237.html

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->aymeric
Responsible-Changed-By: kamil@NetBSD.org
Responsible-Changed-When: Fri, 28 Sep 2018 19:11:13 +0200
Responsible-Changed-Why:
Assign to committer.


From: "Aymeric Vincent" <aymeric@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53637 CVS commit: src/sys/dev/ic
Date: Fri, 28 Sep 2018 21:51:42 +0000

 Module Name:	src
 Committed By:	aymeric
 Date:		Fri Sep 28 21:51:42 UTC 2018

 Modified Files:
 	src/sys/dev/ic: dwc_gmac.c dwc_gmac_reg.h dwc_gmac_var.h

 Log Message:
 Revert the recent support for enhanced descriptors until a viable solution is
 found.

 It broke at least Cubietruck, Orange Pi One, and maybe Rock64 ethernets in
 different ways. Unfortunately it works on my Olinuxino Micro and Lime 2 so I
 can't reproduce the bugs for now.

 Should fix PR#53637


 To generate a diff of this commit:
 cvs rdiff -u -r1.53 -r1.54 src/sys/dev/ic/dwc_gmac.c
 cvs rdiff -u -r1.17 -r1.18 src/sys/dev/ic/dwc_gmac_reg.h
 cvs rdiff -u -r1.10 -r1.11 src/sys/dev/ic/dwc_gmac_var.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: aymeric@NetBSD.org
State-Changed-When: Fri, 28 Sep 2018 21:59:53 +0000
State-Changed-Why:
I reverted the commit for the time being as I can't reproduce the bug myself
on the hardware I have and see no obvious solution.


From: Aymeric Vincent <aymericvincent@free.fr>
To: e3ef13f4ff44@protonmail.com
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/53637 (no ethernet on Orange Pi One)
Date: Sat, 29 Sep 2018 00:02:13 +0200

 Hi,

 thank you for reporting the bug. I reverted my patch; just for the
 record, could you please confirm that this indeed fixes your problem for
 now?

 Regards,
  Aymeric

State-Changed-From-To: feedback->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Sun, 07 Oct 2018 22:35:25 +0200
State-Changed-Why:
e3ef13f4ff44 reported on IRC that the problem is solved.


State-Changed-From-To: closed->open
State-Changed-By: martin@NetBSD.org
State-Changed-When: Mon, 08 Oct 2018 09:18:38 +0000
State-Changed-Why:
The issue is not yet solved but only papered over.
We have new patches and those should go in so others can test.
Aymeric, want me to commit my version or are you dealing with it?


From: Aymeric Vincent <aymericvincent@free.fr>
To: martin@NetBSD.org
Cc: netbsd-bugs@netbsd.org,  gnats-admin@netbsd.org,  e3ef13f4ff44@protonmail.com,  gnats-bugs@NetBSD.org
Subject: Re: kern/53637 (no ethernet on Orange Pi One)
Date: Mon, 08 Oct 2018 18:41:52 +0200

 Hi,

 martin@NetBSD.org writes:

 > We have new patches and those should go in so others can test.
 > Aymeric, want me to commit my version or are you dealing with it?

 I'm fine with you committing it, you clearly fixed the endianness
 issue. Are you positive your patch also fixes the Rock64 case? If that's
 the case, then go for it.

 (On my side I'm working on making the nanosoc run in big-endian mode to
 test further the enhanced descriptors case.)

 Best regards,
  Aymeric

From: Martin Husemann <martin@duskware.de>
To: Aymeric Vincent <aymericvincent@free.fr>
Cc: martin@NetBSD.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org,
	e3ef13f4ff44@protonmail.com, gnats-bugs@NetBSD.org
Subject: Re: kern/53637 (no ethernet on Orange Pi One)
Date: Mon, 8 Oct 2018 18:48:56 +0200

 On Mon, Oct 08, 2018 at 06:41:52PM +0200, Aymeric Vincent wrote:
 > I'm fine with you committing it, you clearly fixed the endianness
 > issue. Are you positive your patch also fixes the Rock64 case? If that's
 > the case, then go for it.

 Not positive, but I hope the core version check will deal with that.

 Martin

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: "Jared D. McNeill" <jmcneill@invisible.ca>
Subject: Re: kern/53637 (no ethernet on Orange Pi One)
Date: Wed, 10 Oct 2018 16:11:44 +0200

 So I talked to the OP off list and it seems (IIUC) this PR is not about
 the gmac descriptor change, but unrelated emac failure.

 The issue only shows up when booting with no ethernet connected:

 [ 1.000040] emac0 at simplebus1: EMAC
 [ 1.000040] emac0: Ethernet address 02:81:52:c9:c3:81
 [ 1.000040] emac0: autoconfiguration error: soft reset timed out

 while it works fine when the ethernet is plugged in at boot time.

 Jared, would you happen to have a board with emac and can you reproduce
 this?

 Martin

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: "Jared D. McNeill" <jmcneill@invisible.ca>
Subject: Re: kern/53637 (no ethernet on Orange Pi One)
Date: Sun, 14 Oct 2018 15:55:31 +0200

 My orangepi zeros arrived and I can reproduce the issue.

 Martin

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: "Jared D. McNeill" <jmcneill@invisible.ca>
Subject: Re: kern/53637 (no ethernet on Orange Pi One)
Date: Sun, 14 Oct 2018 16:17:46 +0200

 The debug register dump looks like this:

 [   1.0000340] emac0 at simplebus1: EMAC
 [   1.0000340] emac0: Ethernet address 02:42:01:75:67:dd
 [   1.0000340] emac0: soft reset timed out
 [   1.0000340] emac0:   BASIC_CTL_0          00000000
 [   1.0000340] emac0:   BASIC_CTL_1          08000001
 [   1.0000340] emac0:   INT_STA              40000000
 [   1.0000340] emac0:   INT_EN               00000000
 [   1.0000340] emac0:   TX_CTL_0             00000000
 [   1.0000340] emac0:   TX_CTL_1             00000000
 [   1.0000340] emac0:   TX_FLOW_CTL          00000000
 [   1.0000340] emac0:   TX_DMA_LIST          00000000
 [   1.0000340] emac0:   RX_CTL_0             00000000
 [   1.0000340] emac0:   RX_CTL_1             00000000
 [   1.0000340] emac0:   RX_DMA_LIST          00000000
 [   1.0000340] emac0:   RX_FRM_FLT           00000000
 [   1.0000340] emac0:   RX_HASH_0            00000000
 [   1.0000340] emac0:   RX_HASH_1            00000000
 [   1.0000340] emac0:   MII_CMD              00000000
 [   1.0000340] emac0:   ADDR_HIGH0           0000ffff
 [   1.0000340] emac0:   ADDR_LOW0            ffffffff
 [   1.0000340] emac0:   TX_DMA_STA           00000000
 [   1.0000340] emac0:   TX_DMA_CUR_DESC      00000000
 [   1.0000340] emac0:   TX_DMA_CUR_BUF       00000000
 [   1.0000340] emac0:   RX_DMA_STA           00000000
 [   1.0000340] emac0:   RX_DMA_CUR_DESC      00000000
 [   1.0000340] emac0:   RX_DMA_CUR_BUF       00000000
 [   1.0000340] emac0:   RGMII_STA            00000000

 Martin


From: Aymeric Vincent <aymericvincent@free.fr>
To: e3ef13f4ff44@protonmail.com, jmcneill@invisible.ca,
    kamil@netbsd.org, Martin Husemann <martin@duskware.de>
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, gnats-bugs@NetBSD.org
Subject: Re: kern/53637 (no ethernet on Orange Pi One)
Date: Sat, 05 Jan 2019 16:03:29 +0100

 Hi,

 is there any update on this bug? It had nothing to do with awge, so if
 anyone has data or wants to take ownership, that would be nice.

 ISTR jmcneill@ made a couple of commits related to the issue.

 Regards,
  Aymeric

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.