linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
@ 2020-06-21  6:40 Christian Zigotzky
  2020-06-24  8:23 ` Alexander Gordeev
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Zigotzky @ 2020-06-21  6:40 UTC (permalink / raw)
  To: agordeev
  Cc: Darren Stevens, linuxppc-dev, R.T.Dickinson, mad skateman,
	Christian Zigotzky

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

Hello Alexander,

The DPAA Ethernet doesn’t work anymore on our FSL P5020/P5040 boards [1] since the RC1 of kernel 5.8 [2].
We bisected last days [3] and found the problematic commit [4]. I was able to revert it [5]. After that the DPAA Ethernet works again. I created a patch for reverting the commit [5]. This patch works and I will use it for the RC2.
Could you please check your commit? [4]

Thanks,
Christian

[1] http://wiki.amiga.org/index.php?title=X5000
[2] https://forum.hyperion-entertainment.com/viewtopic.php?p=50885#p50885
[3] https://forum.hyperion-entertainment.com/viewtopic.php?p=50892#p50892
[4] lib: fix bitmap_parse() on 64-bit big endian archs: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81c4f4d924d5d009b5ed785a3e22b18d0f7b831f
[5] https://forum.hyperion-entertainment.com/viewtopic.php?p=50982#p50982



[-- Attachment #2: Type: text/html, Size: 1628 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
  2020-06-21  6:40 Christian Zigotzky
@ 2020-06-24  8:23 ` Alexander Gordeev
  2020-06-24 23:01   ` Christian Zigotzky
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Gordeev @ 2020-06-24  8:23 UTC (permalink / raw)
  To: Christian Zigotzky
  Cc: Darren Stevens, linuxppc-dev, R.T.Dickinson, mad skateman,
	Christian Zigotzky

On Sun, Jun 21, 2020 at 08:40:14AM +0200, Christian Zigotzky wrote:
> Hello Alexander,
> 
> The DPAA Ethernet doesn’t work anymore on our FSL P5020/P5040 boards [1] since the RC1 of kernel 5.8 [2].
> We bisected last days [3] and found the problematic commit [4]. I was able to revert it [5]. After that the DPAA Ethernet works again. I created a patch for reverting the commit [5]. This patch works and I will use it for the RC2.
> Could you please check your commit? [4]

Hi Christian,

Could you please check if the kernel passes CONFIG_TEST_BITMAP self-test?

Thanks!

> Thanks,
> Christian
> 
> [1] http://wiki.amiga.org/index.php?title=X5000
> [2] https://forum.hyperion-entertainment.com/viewtopic.php?p=50885#p50885
> [3] https://forum.hyperion-entertainment.com/viewtopic.php?p=50892#p50892
> [4] lib: fix bitmap_parse() on 64-bit big endian archs: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81c4f4d924d5d009b5ed785a3e22b18d0f7b831f
> [5] https://forum.hyperion-entertainment.com/viewtopic.php?p=50982#p50982
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
  2020-06-24  8:23 ` Alexander Gordeev
@ 2020-06-24 23:01   ` Christian Zigotzky
  2020-06-25 10:22     ` Alexander Gordeev
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Zigotzky @ 2020-06-24 23:01 UTC (permalink / raw)
  To: Alexander Gordeev
  Cc: Darren Stevens, linuxppc-dev, R.T.Dickinson, mad skateman,
	Christian Zigotzky

On 24 June 2020, at 10:23 am, Alexander Gordeev wrote:
> On Sun, Jun 21, 2020 at 08:40:14AM +0200, Christian Zigotzky wrote:
>> Hello Alexander,
>>
>> The DPAA Ethernet doesn’t work anymore on our FSL P5020/P5040 boards [1] since the RC1 of kernel 5.8 [2].
>> We bisected last days [3] and found the problematic commit [4]. I was able to revert it [5]. After that the DPAA Ethernet works again. I created a patch for reverting the commit [5]. This patch works and I will use it for the RC2.
>> Could you please check your commit? [4]
> Hi Christian,
>
> Could you please check if the kernel passes CONFIG_TEST_BITMAP self-test?
>
> Thanks!
>
>> Thanks,
>> Christian
>>
>> [1] http://wiki.amiga.org/index.php?title=X5000
>> [2] https://forum.hyperion-entertainment.com/viewtopic.php?p=50885#p50885
>> [3] https://forum.hyperion-entertainment.com/viewtopic.php?p=50892#p50892
>> [4] lib: fix bitmap_parse() on 64-bit big endian archs: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81c4f4d924d5d009b5ed785a3e22b18d0f7b831f
>> [5] https://forum.hyperion-entertainment.com/viewtopic.php?p=50982#p50982
>>
>>
Hi Alexander,

Thanks for your reply!

I compiled a test kernel with the option "CONFIG_TEST_BITMAP=y" 
yesterday. After that Skateman and I booted it and looked for the bitmap 
tests with "dmesg | grep -i bitmap".

Results:

FSL P5020:

[    0.297756] test_bitmap: loaded.
[    0.298113] test_bitmap: parselist: 14: input is '0-2047:128/256' OK, 
Time: 562
[    0.298142] test_bitmap: parselist_user: 14: input is 
'0-2047:128/256' OK, Time: 761
[    0.301553] test_bitmap: all 1663 tests passed

FSL P5040:

[    0.296563] test_bitmap: loaded.
[    0.296894] test_bitmap: parselist: 14: input is '0-2047:128/256' OK, 
Time: 540
[    0.296920] test_bitmap: parselist_user: 14: input is 
'0-2047:128/256' OK, Time: 680
[    0.299994] test_bitmap: all 1663 tests passed

Thanks,
Christian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
  2020-06-24 23:01   ` Christian Zigotzky
@ 2020-06-25 10:22     ` Alexander Gordeev
  2020-07-07  7:52       ` Christian Zigotzky
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Gordeev @ 2020-06-25 10:22 UTC (permalink / raw)
  To: Christian Zigotzky
  Cc: Darren Stevens, mad skateman, Madalin Bucur, Sascha Hauer,
	R.T.Dickinson, linuxppc-dev, Christian Zigotzky

On Thu, Jun 25, 2020 at 01:01:52AM +0200, Christian Zigotzky wrote:
[...]
> I compiled a test kernel with the option "CONFIG_TEST_BITMAP=y"
> yesterday. After that Skateman and I booted it and looked for the
> bitmap tests with "dmesg | grep -i bitmap".
> 
> Results:
> 
> FSL P5020:
> 
> [    0.297756] test_bitmap: loaded.
> [    0.298113] test_bitmap: parselist: 14: input is '0-2047:128/256'
> OK, Time: 562
> [    0.298142] test_bitmap: parselist_user: 14: input is
> '0-2047:128/256' OK, Time: 761
> [    0.301553] test_bitmap: all 1663 tests passed
> 
> FSL P5040:
> 
> [    0.296563] test_bitmap: loaded.
> [    0.296894] test_bitmap: parselist: 14: input is '0-2047:128/256'
> OK, Time: 540
> [    0.296920] test_bitmap: parselist_user: 14: input is
> '0-2047:128/256' OK, Time: 680
> [    0.299994] test_bitmap: all 1663 tests passed

Thanks for the test! So it works as expected.

I would suggest to compare what is going on on the device probing
with and without the bisected commit.

There seems to be MAC and PHY mode initialization issue that might
resulted from the bitmap format change.

I put Madalin and Sascha on CC as they have done some works on
this part recently.

Thanks!


> Thanks,
> Christian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
  2020-06-25 10:22     ` Alexander Gordeev
@ 2020-07-07  7:52       ` Christian Zigotzky
  0 siblings, 0 replies; 8+ messages in thread
From: Christian Zigotzky @ 2020-07-07  7:52 UTC (permalink / raw)
  To: Alexander Gordeev
  Cc: Darren Stevens, mad skateman, Madalin Bucur,
	netdev@vger.kernel.org, Sascha Hauer, R.T.Dickinson, linuxppc-dev,
	Christian Zigotzky

On 25 June 2020 at 12:22 pm, Alexander Gordeev wrote:
> On Thu, Jun 25, 2020 at 01:01:52AM +0200, Christian Zigotzky wrote:
> [...]
>> I compiled a test kernel with the option "CONFIG_TEST_BITMAP=y"
>> yesterday. After that Skateman and I booted it and looked for the
>> bitmap tests with "dmesg | grep -i bitmap".
>>
>> Results:
>>
>> FSL P5020:
>>
>> [    0.297756] test_bitmap: loaded.
>> [    0.298113] test_bitmap: parselist: 14: input is '0-2047:128/256'
>> OK, Time: 562
>> [    0.298142] test_bitmap: parselist_user: 14: input is
>> '0-2047:128/256' OK, Time: 761
>> [    0.301553] test_bitmap: all 1663 tests passed
>>
>> FSL P5040:
>>
>> [    0.296563] test_bitmap: loaded.
>> [    0.296894] test_bitmap: parselist: 14: input is '0-2047:128/256'
>> OK, Time: 540
>> [    0.296920] test_bitmap: parselist_user: 14: input is
>> '0-2047:128/256' OK, Time: 680
>> [    0.299994] test_bitmap: all 1663 tests passed
> Thanks for the test! So it works as expected.
>
> I would suggest to compare what is going on on the device probing
> with and without the bisected commit.
>
> There seems to be MAC and PHY mode initialization issue that might
> resulted from the bitmap format change.
>
> I put Madalin and Sascha on CC as they have done some works on
> this part recently.
>
> Thanks!
>

Hi All,

The issue still exists [1] so we still need the dpaa patch [2]. Could 
you please check the problematic commit [3]?

Thanks,
Christian

[1] https://forum.hyperion-entertainment.com/viewtopic.php?p=50885#p50885
[2] https://forum.hyperion-entertainment.com/viewtopic.php?p=50982#p50982
[3] https://forum.hyperion-entertainment.com/viewtopic.php?p=50980#p50980

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
       [not found] <AM6PR04MB3976584920CFDC269D859DBBEC660@AM6PR04MB3976.eurprd04.prod.outlook.com>
@ 2020-07-07 18:26 ` Christian Zigotzky
  2020-07-08  6:03   ` Madalin Bucur (OSS)
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Zigotzky @ 2020-07-07 18:26 UTC (permalink / raw)
  To: Madalin Bucur (OSS)
  Cc: Darren Stevens, mad skateman, netdev, linuxppc-dev,
	Camelia Alexandra Groza, R.T.Dickinson

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]


> On 7. Jul 2020, at 17:53, Madalin Bucur (OSS) <madalin.bucur@oss.nxp.com> wrote:
> 
> Was DPAA functional before commit A?
> How about after commit A and before commit B?

The DPAA Ethernet works from  the kernel 5.6-rc4 [1] till the Git kernel from the 11 of June [2]. It doesn’t work since the commit “fix bitmap_parse” [3].

[1] https://forum.hyperion-entertainment.com/viewtopic.php?p=49936#p49936
[2] https://forum.hyperion-entertainment.com/viewtopic.php?p=50848#p50848
[3] https://forum.hyperion-entertainment.com/viewtopic.php?p=50980#p50980


[-- Attachment #2: Type: text/html, Size: 1179 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
  2020-07-07 18:26 ` FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel Christian Zigotzky
@ 2020-07-08  6:03   ` Madalin Bucur (OSS)
  2020-07-08  6:25     ` Christian Zigotzky
  0 siblings, 1 reply; 8+ messages in thread
From: Madalin Bucur (OSS) @ 2020-07-08  6:03 UTC (permalink / raw)
  To: Christian Zigotzky, Madalin Bucur (OSS)
  Cc: Darren Stevens, mad skateman, netdev@vger.kernel.org,
	linuxppc-dev@ozlabs.org, Camelia Alexandra Groza, R.T.Dickinson

> From: Christian Zigotzky <chzigotzky@xenosoft.de> 
> Sent: Tuesday, July 7, 2020 9:26 PM
> To: Madalin Bucur (OSS) <madalin.bucur@oss.nxp.com>
> Cc: mad skateman <madskateman@gmail.com>; Camelia Alexandra Groza <camelia.groza@nxp.com>;
> linuxppc-dev@ozlabs.org; netdev@vger.kernel.org; R.T.Dickinson <rtd2@xtra.co.nz>;
> Darren Stevens <darren@stevens-zone.net>
> Subject: Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
>
>
> On 7. Jul 2020, at 17:53, Madalin Bucur (OSS) <mailto:madalin.bucur@oss.nxp.com> wrote:
> Was DPAA functional before commit A?
> How about after commit A and before commit B?

> The DPAA Ethernet works from  the kernel 5.6-rc4 [1] till the Git kernel from the
> 11 of June [2]. It doesn’t work since the commit “fix bitmap_parse” [3].

> [1] https://forum.hyperion-entertainment.com/viewtopic.php?p=49936#p49936
> [2] https://forum.hyperion-entertainment.com/viewtopic.php?p=50848#p50848
> [3] https://forum.hyperion-entertainment.com/viewtopic.php?p=50980#p50980

Hi,

can you please try to disable the network manager (see [1]), then boot with
the latest kernel, that does not work, and setup the interfaces manually?

Madalin

[1] https://help.ubuntu.com/community/NetworkManager#Stopping_and_Disabling_NetworkManager


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
  2020-07-08  6:03   ` Madalin Bucur (OSS)
@ 2020-07-08  6:25     ` Christian Zigotzky
  0 siblings, 0 replies; 8+ messages in thread
From: Christian Zigotzky @ 2020-07-08  6:25 UTC (permalink / raw)
  To: Madalin Bucur (OSS)
  Cc: Darren Stevens, mad skateman, netdev@vger.kernel.org,
	linuxppc-dev@ozlabs.org, Camelia Alexandra Groza, R.T.Dickinson

On 08 July 2020 at 08:03 am, Madalin Bucur (OSS) wrote:
>> From: Christian Zigotzky <chzigotzky@xenosoft.de>
>> Sent: Tuesday, July 7, 2020 9:26 PM
>> To: Madalin Bucur (OSS) <madalin.bucur@oss.nxp.com>
>> Cc: mad skateman <madskateman@gmail.com>; Camelia Alexandra Groza <camelia.groza@nxp.com>;
>> linuxppc-dev@ozlabs.org; netdev@vger.kernel.org; R.T.Dickinson <rtd2@xtra.co.nz>;
>> Darren Stevens <darren@stevens-zone.net>
>> Subject: Re: FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel
>>
>>
>> On 7. Jul 2020, at 17:53, Madalin Bucur (OSS) <mailto:madalin.bucur@oss.nxp.com> wrote:
>> Was DPAA functional before commit A?
>> How about after commit A and before commit B?
>> The DPAA Ethernet works from  the kernel 5.6-rc4 [1] till the Git kernel from the
>> 11 of June [2]. It doesn’t work since the commit “fix bitmap_parse” [3].
>> [1] https://forum.hyperion-entertainment.com/viewtopic.php?p=49936#p49936
>> [2] https://forum.hyperion-entertainment.com/viewtopic.php?p=50848#p50848
>> [3] https://forum.hyperion-entertainment.com/viewtopic.php?p=50980#p50980
> Hi,
>
> can you please try to disable the network manager (see [1]), then boot with
> the latest kernel, that does not work, and setup the interfaces manually?
>
> Madalin
>
> [1] https://help.ubuntu.com/community/NetworkManager#Stopping_and_Disabling_NetworkManager
>
@Skateman
I will compile the latest Git kernel after the 17th. Could you please 
test it without the NetworkManager?

Thanks

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-07-08  6:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AM6PR04MB3976584920CFDC269D859DBBEC660@AM6PR04MB3976.eurprd04.prod.outlook.com>
2020-07-07 18:26 ` FSL P5020/P5040: DPAA Ethernet issue with the latest Git kernel Christian Zigotzky
2020-07-08  6:03   ` Madalin Bucur (OSS)
2020-07-08  6:25     ` Christian Zigotzky
2020-06-21  6:40 Christian Zigotzky
2020-06-24  8:23 ` Alexander Gordeev
2020-06-24 23:01   ` Christian Zigotzky
2020-06-25 10:22     ` Alexander Gordeev
2020-07-07  7:52       ` Christian Zigotzky

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).