From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mason Subject: Re: Ethernet not working on a different SoC with same eth HW Date: Wed, 9 Nov 2016 18:38:12 +0100 Message-ID: <58235F04.1060604@free.fr> References: <58176355.7090200@free.fr> <5821F223.5090508@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Mans Rullgard , Florian Fainelli , Timur Tabi , Sergei Shtylyov , Zefir Kurtisi , Martin Blumenstingl , Andrew Lunn , Uwe Kleine-Konig , Daniel Mack , Sebastian Frias To: netdev Return-path: Received: from smtp5-g21.free.fr ([212.27.42.5]:60698 "EHLO smtp5-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbcKIRik (ORCPT ); Wed, 9 Nov 2016 12:38:40 -0500 In-Reply-To: <5821F223.5090508@free.fr> Sender: netdev-owner@vger.kernel.org List-ID: On 08/11/2016 16:41, Mason wrote: > On 31/10/2016 16:29, Mason wrote: > >> I'm using these net drivers: >> >> drivers/net/ethernet/aurora/nb8800.c >> drivers/net/phy/at803x.c >> >> With a smp8758 board, they work great. >> I've been trying to use them on a different board: >> >> same eth PHY (Atheros AR8035) >> same eth MAC (Aurora SSN8800) >> different SoC (same base address for MAC block) >> >> It doesn't work, and I'm not sure where to look first... > > After oh-so-many days making increasingly random changes, > hoping something would magically un-break, we did find a > *local* commit for an exotic platform (chip emulator) that > was causing the issue. However... all is not well yet :-( A) When the board is connected to a Gigabit switch, it is able to complete the DHCP dance. But this takes around 5 seconds, (with several requests timing out). Whereas the same board running an ugly 3.4 kernel (which Mans called "quite hideous even by evil vendor standards") completes the DHCP dance in under a second. B) When the board is connected to a Fast Ethernet switch, the DHCP dance times out forever. (Whereas this works on the 3.4 kernel.) C) When the board is connected to a Gigabit switch, then plugged into the Fast Ethernet switch, then back into the Gigabit switch, network connectivity is lost forever. We've started examining the differences in phy and net frameworks between 3.4 and 4.9 but that's an atom in a haystack. To be continued... Regards.