* Issue found in Armada 370: 10Mbps ethernet connection can't get IP
@ 2014-07-07 2:56 Maggie Mae Roxas
2014-07-07 3:00 ` Maggie Mae Roxas
2014-07-07 9:00 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Maggie Mae Roxas @ 2014-07-07 2:56 UTC (permalink / raw)
To: linux-arm-kernel
Hi Thomas,
Good day.
We have previously discussed before on Armada 370 ethernet issues (now
resolved via your suggestion/patches in recent kernel versions).
We just found out last week that 10Mbps ethernet (SGMII) connection
can't obtain IP in recent kernel versions (3.10.x and above). Here are
the details:
Processor: Armada 370 88F6707
Board: Custom
Kernel versions tried:
3.10.24 (issue exists)
3.13.9 (issue exists)
3.2.43 (issue does NOT exist)
U-Boot versions tried: 2012_Q4 and 2013_Q1 from Marvell extranet
Some more important notes:
Both 100Mbps and 1000Mbps have no issues.
Issue does not exist at u-boot level (via static IP address, confirmed
via ping - results: 'x.x.x.x is alive')
We have different LED configs for 10, 100 and 1000 Mbps - and LED
shows 10Mbps is established (even ethtool does). However, we just
can't obtain IP.
Our kernel version 3.2.43 have patches from Marvell extranet (for Armada 370)
Is there a known issue for this?
Thank you very much.
Regards,
Maggie Roxas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Issue found in Armada 370: 10Mbps ethernet connection can't get IP
2014-07-07 2:56 Issue found in Armada 370: 10Mbps ethernet connection can't get IP Maggie Mae Roxas
@ 2014-07-07 3:00 ` Maggie Mae Roxas
2014-07-07 9:00 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Maggie Mae Roxas @ 2014-07-07 3:00 UTC (permalink / raw)
To: linux-arm-kernel
BTW - our ethernet chip is Marvell 88E1512.
On Sun, Jul 6, 2014 at 7:56 PM, Maggie Mae Roxas
<maggie.mae.roxas@gmail.com> wrote:
> Hi Thomas,
> Good day.
>
> We have previously discussed before on Armada 370 ethernet issues (now
> resolved via your suggestion/patches in recent kernel versions).
>
> We just found out last week that 10Mbps ethernet (SGMII) connection
> can't obtain IP in recent kernel versions (3.10.x and above). Here are
> the details:
>
> Processor: Armada 370 88F6707
> Board: Custom
> Kernel versions tried:
> 3.10.24 (issue exists)
> 3.13.9 (issue exists)
> 3.2.43 (issue does NOT exist)
> U-Boot versions tried: 2012_Q4 and 2013_Q1 from Marvell extranet
>
> Some more important notes:
> Both 100Mbps and 1000Mbps have no issues.
> Issue does not exist at u-boot level (via static IP address, confirmed
> via ping - results: 'x.x.x.x is alive')
> We have different LED configs for 10, 100 and 1000 Mbps - and LED
> shows 10Mbps is established (even ethtool does). However, we just
> can't obtain IP.
> Our kernel version 3.2.43 have patches from Marvell extranet (for Armada 370)
>
> Is there a known issue for this?
>
> Thank you very much.
>
> Regards,
> Maggie Roxas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Issue found in Armada 370: 10Mbps ethernet connection can't get IP
2014-07-07 2:56 Issue found in Armada 370: 10Mbps ethernet connection can't get IP Maggie Mae Roxas
2014-07-07 3:00 ` Maggie Mae Roxas
@ 2014-07-07 9:00 ` Thomas Petazzoni
2014-07-07 11:12 ` Maggie Mae Roxas
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2014-07-07 9:00 UTC (permalink / raw)
To: linux-arm-kernel
Dear Maggie Mae Roxas,
On Sun, 6 Jul 2014 19:56:27 -0700, Maggie Mae Roxas wrote:
> We just found out last week that 10Mbps ethernet (SGMII) connection
> can't obtain IP in recent kernel versions (3.10.x and above). Here are
> the details:
>
> Processor: Armada 370 88F6707
> Board: Custom
> Kernel versions tried:
> 3.10.24 (issue exists)
> 3.13.9 (issue exists)
> 3.2.43 (issue does NOT exist)
> U-Boot versions tried: 2012_Q4 and 2013_Q1 from Marvell extranet
>
> Some more important notes:
> Both 100Mbps and 1000Mbps have no issues.
> Issue does not exist at u-boot level (via static IP address, confirmed
> via ping - results: 'x.x.x.x is alive')
> We have different LED configs for 10, 100 and 1000 Mbps - and LED
> shows 10Mbps is established (even ethtool does). However, we just
> can't obtain IP.
> Our kernel version 3.2.43 have patches from Marvell extranet (for Armada 370)
>
> Is there a known issue for this?
Thanks for the report. Can you test the patch below?
Thanks,
Thomas
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index 45beca1..d49f08d 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -2529,7 +2529,7 @@ static void mvneta_adjust_link(struct net_device *ndev)
if (phydev->speed == SPEED_1000)
val |= MVNETA_GMAC_CONFIG_GMII_SPEED;
- else
+ else if (phydev->speed == SPEED_100)
val |= MVNETA_GMAC_CONFIG_MII_SPEED;
mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val);
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Issue found in Armada 370: 10Mbps ethernet connection can't get IP
2014-07-07 9:00 ` Thomas Petazzoni
@ 2014-07-07 11:12 ` Maggie Mae Roxas
2014-07-08 1:47 ` Maggie Mae Roxas
0 siblings, 1 reply; 5+ messages in thread
From: Maggie Mae Roxas @ 2014-07-07 11:12 UTC (permalink / raw)
To: linux-arm-kernel
Hi Thomas,
Good day.
Thank you very much for the quick feedback.
I will apply this patch and send you the results by tomorrow 07/08
morning (it is currently 07/07 evening as of this e-mail).
Regards,
Maggie Roxas
On Mon, Jul 7, 2014 at 2:00 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Maggie Mae Roxas,
>
> On Sun, 6 Jul 2014 19:56:27 -0700, Maggie Mae Roxas wrote:
>
>> We just found out last week that 10Mbps ethernet (SGMII) connection
>> can't obtain IP in recent kernel versions (3.10.x and above). Here are
>> the details:
>>
>> Processor: Armada 370 88F6707
>> Board: Custom
>> Kernel versions tried:
>> 3.10.24 (issue exists)
>> 3.13.9 (issue exists)
>> 3.2.43 (issue does NOT exist)
>> U-Boot versions tried: 2012_Q4 and 2013_Q1 from Marvell extranet
>>
>> Some more important notes:
>> Both 100Mbps and 1000Mbps have no issues.
>> Issue does not exist at u-boot level (via static IP address, confirmed
>> via ping - results: 'x.x.x.x is alive')
>> We have different LED configs for 10, 100 and 1000 Mbps - and LED
>> shows 10Mbps is established (even ethtool does). However, we just
>> can't obtain IP.
>> Our kernel version 3.2.43 have patches from Marvell extranet (for Armada 370)
>>
>> Is there a known issue for this?
>
> Thanks for the report. Can you test the patch below?
>
> Thanks,
>
> Thomas
>
> diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
> index 45beca1..d49f08d 100644
> --- a/drivers/net/ethernet/marvell/mvneta.c
> +++ b/drivers/net/ethernet/marvell/mvneta.c
> @@ -2529,7 +2529,7 @@ static void mvneta_adjust_link(struct net_device *ndev)
>
> if (phydev->speed == SPEED_1000)
> val |= MVNETA_GMAC_CONFIG_GMII_SPEED;
> - else
> + else if (phydev->speed == SPEED_100)
> val |= MVNETA_GMAC_CONFIG_MII_SPEED;
>
> mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val);
>
>
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Issue found in Armada 370: 10Mbps ethernet connection can't get IP
2014-07-07 11:12 ` Maggie Mae Roxas
@ 2014-07-08 1:47 ` Maggie Mae Roxas
0 siblings, 0 replies; 5+ messages in thread
From: Maggie Mae Roxas @ 2014-07-08 1:47 UTC (permalink / raw)
To: linux-arm-kernel
Hi Thomas,
Good day.
This is to confirm that "can't get IP at 10Mbps" issue is resolved
after I applied your patch in v3.13.9.
Thanks a lot for the help!
Regards,
Maggie Roxas
On Mon, Jul 7, 2014 at 4:12 AM, Maggie Mae Roxas
<maggie.mae.roxas@gmail.com> wrote:
> Hi Thomas,
> Good day.
>
> Thank you very much for the quick feedback.
> I will apply this patch and send you the results by tomorrow 07/08
> morning (it is currently 07/07 evening as of this e-mail).
>
> Regards,
> Maggie Roxas
>
> On Mon, Jul 7, 2014 at 2:00 AM, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
>> Dear Maggie Mae Roxas,
>>
>> On Sun, 6 Jul 2014 19:56:27 -0700, Maggie Mae Roxas wrote:
>>
>>> We just found out last week that 10Mbps ethernet (SGMII) connection
>>> can't obtain IP in recent kernel versions (3.10.x and above). Here are
>>> the details:
>>>
>>> Processor: Armada 370 88F6707
>>> Board: Custom
>>> Kernel versions tried:
>>> 3.10.24 (issue exists)
>>> 3.13.9 (issue exists)
>>> 3.2.43 (issue does NOT exist)
>>> U-Boot versions tried: 2012_Q4 and 2013_Q1 from Marvell extranet
>>>
>>> Some more important notes:
>>> Both 100Mbps and 1000Mbps have no issues.
>>> Issue does not exist at u-boot level (via static IP address, confirmed
>>> via ping - results: 'x.x.x.x is alive')
>>> We have different LED configs for 10, 100 and 1000 Mbps - and LED
>>> shows 10Mbps is established (even ethtool does). However, we just
>>> can't obtain IP.
>>> Our kernel version 3.2.43 have patches from Marvell extranet (for Armada 370)
>>>
>>> Is there a known issue for this?
>>
>> Thanks for the report. Can you test the patch below?
>>
>> Thanks,
>>
>> Thomas
>>
>> diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
>> index 45beca1..d49f08d 100644
>> --- a/drivers/net/ethernet/marvell/mvneta.c
>> +++ b/drivers/net/ethernet/marvell/mvneta.c
>> @@ -2529,7 +2529,7 @@ static void mvneta_adjust_link(struct net_device *ndev)
>>
>> if (phydev->speed == SPEED_1000)
>> val |= MVNETA_GMAC_CONFIG_GMII_SPEED;
>> - else
>> + else if (phydev->speed == SPEED_100)
>> val |= MVNETA_GMAC_CONFIG_MII_SPEED;
>>
>> mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val);
>>
>>
>> --
>> Thomas Petazzoni, CTO, Free Electrons
>> Embedded Linux, Kernel and Android engineering
>> http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-07-08 1:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-07 2:56 Issue found in Armada 370: 10Mbps ethernet connection can't get IP Maggie Mae Roxas
2014-07-07 3:00 ` Maggie Mae Roxas
2014-07-07 9:00 ` Thomas Petazzoni
2014-07-07 11:12 ` Maggie Mae Roxas
2014-07-08 1:47 ` Maggie Mae Roxas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).