Skip to contentSkip to conversation

Driver hangs on Armada 385 device

crypto radioconfusion at gmail.com 4 participants 9 messages Aug 19, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

Quoted 7 lines · radioconfusion at gmail.com

My Armada 385 -device hangs when using marvell-cesa -driver. I'm using Linux 4.4.10 and armada-385-db-ap.dts.
I have also tried with the driver version of Linux 4.7-rc3.

Please see https://bugzilla.kernel.org/show_bug.cgi?id=120111 for details.

I just tested the marvell-cesa with Linux 4.8-rc2 and Armada 385. There is still the same hanging issue (originally described on
https://bugzilla.kernel.org/show_bug.cgi?id=120111).

Please let me ask which model of Armada board has been verified to work with the marvell-cesa driver? I'm using a custom board based on 88F6820. Is this SoC model fully supported by the driver? Do you know if there is some necessary hardware initializations which must be done on u-boot? I'm using latest Marvell patch set (2015_T1.0p16) on u-boot.

My test case have been:

# cryptsetup benchmark --cipher aes-cbc

and that always freezes the board.

Best Regards
Jussi

#1 lore raw

Hello,

I'm adding Romain Perier in Cc, since he is actively working on the CESA driver.

Quoted 6 lines · radioconfusion at gmail.com
Quoted 6 lines · radioconfusion at gmail.com

My Armada 385 -device hangs when using marvell-cesa -driver. I'm using Linux 4.4.10 and armada-385-db-ap.dts.
I have also tried with the driver version of Linux 4.7-rc3.

Quoted 8 lines
Quoted 1 line

Please see https://bugzilla.kernel.org/show_bug.cgi?id=120111 for details.

I just tested the marvell-cesa with Linux 4.8-rc2 and Armada 385. There is still the same hanging issue (originally described on
https://bugzilla.kernel.org/show_bug.cgi?id=120111).

Please let me ask which model of Armada board has been verified to work with the marvell-cesa driver?

The Armada 388 GP board.

Quoted 9 lines

I'm using a custom board based on 88F6820. Is this SoC
model fully supported by the driver? Do you know if there is some necessary hardware initializations which must be done on u-boot? I'm using latest Marvell patch set (2015_T1.0p16) on u-boot.

My test case have been:

# cryptsetup benchmark --cipher aes-cbc

and that always freezes the board.

Romain, can you test the same scenario, and see if you can reproduce the hang or not?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

Hello,

Le 19/08/2016 14:12, Thomas Petazzoni a ?crit :

Quoted 15 lines

Hello,

I'm adding Romain Perier in Cc, since he is actively working on the CESA driver.

Quoted 8 lines · radioconfusion at gmail.com
Quoted 7 lines · radioconfusion at gmail.com

My Armada 385 -device hangs when using marvell-cesa -driver. I'm using Linux 4.4.10 and armada-385-db-ap.dts.
I have also tried with the driver version of Linux 4.7-rc3.

Please see https://bugzilla.kernel.org/show_bug.cgi?id=120111 for details.

Quoted 8 lines
Quoted 6 lines

I just tested the marvell-cesa with Linux 4.8-rc2 and Armada 385. There is still the same hanging issue (originally described on
https://bugzilla.kernel.org/show_bug.cgi?id=120111).

Please let me ask which model of Armada board has been verified to work with the marvell-cesa driver?

The Armada 388 GP board.

For now:
The Armada 388-DB-GP
The Armada 385-DB-AP
The Armada 375-DB

Quoted 6 lines
Quoted 6 lines

I'm using a custom board based on 88F6820. Is this SoC
model fully supported by the driver? Do you know if there is some necessary hardware initializations which must be done on u-boot? I'm using latest Marvell patch set (2015_T1.0p16) on u-boot.

Quoted 7 lines
Quoted 4 lines

My test case have been:

# cryptsetup benchmark --cipher aes-cbc

and that always freezes the board.

Romain, can you test the same scenario, and see if you can reproduce the hang or not?

Sure,

I have did exactly the same tests with Linux 4.8-rc2 (using a rootfs buildroot-2016.02 over nfs) on A388-db-gp and A385-db-ap, both work just fine. I launched the benchmark several times.

I am running uboot, Marvell version: 2015_T1.0p5

See yourself: http://paste.ubuntu.com/23070118

Romain

Signature · 3 lines
Romain Perier, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw
In reply to Thomas Petazzoni
Quoted 4 lines · Thomas Petazzoni

Hello,

I'm adding Romain Perier in Cc, since he is actively working on the CESA driver.

4.7 here on Clearfog (Armada 388):

# cryptsetup benchmark --cipher aes-cbc
# Tests are approximate using memory only (no storage IO).
#  Algorithm | Key |  Encryption |  Decryption
     aes-cbc   256b    67.1 MiB/s    68.3 MiB/s

/proc/interrupts:
CPU0 CPU1
42: 2144 0 GIC-0 51 Level f1090000.crypto

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#4 lore raw
Quoted 8 lines · Russell King - ARM Linux
Quoted 4 lines · Thomas Petazzoni

Hello,

I'm adding Romain Perier in Cc, since he is actively working on the CESA driver.

4.7 here on Clearfog (Armada 388):

Quoted 8 lines
# cryptsetup benchmark --cipher aes-cbc
# Tests are approximate using memory only (no storage IO).
#  Algorithm | Key |  Encryption |  Decryption
     aes-cbc   256b    67.1 MiB/s    68.3 MiB/s

/proc/interrupts:
CPU0 CPU1
42: 2144 0 GIC-0 51 Level f1090000.crypto

With the coherency fix commit reverted (as mentioned in the bug report) I get:

# cryptsetup benchmark --cipher aes-cbc
# Tests are approximate using memory only (no storage IO).
#  Algorithm | Key |  Encryption |  Decryption
     aes-cbc   256b    65.8 MiB/s    67.1 MiB/s

so not that different from before. Run more than 10 times without issue.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#5 lore raw
In reply to Russell King - ARM Linux

I was, wondering, do you boot with a separated DTB or a legacy boot (concatenated to the Image) ?

Could you test with uImage.armada-385-db-ap [1], that's a legacy Image. Also, I have uploaded a minimalistic rootfs [2], if you want.

1. http://www.free-electrons.com/~romain/pub/cesa/uImage.armada-385-db-ap
2. http://www.free-electrons.com/~romain/pub/cesa/rootfs.cpio.xz

Romain

Signature · 3 lines
Romain Perier, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw

Le 19/08/2016 16:09, Romain Perier a ?crit :

Quoted 9 lines

I was, wondering, do you boot with a separated DTB or a legacy boot (concatenated to the Image) ?

Could you test with uImage.armada-385-db-ap [1], that's a legacy Image. Also, I have uploaded a minimalistic rootfs [2], if you want.

1. http://www.free-electrons.com/~romain/pub/cesa/uImage.armada-385-db-ap
2. http://www.free-electrons.com/~romain/pub/cesa/rootfs.cpio.xz

I have also uploaded the zImage and a separated DTB (the cesa directory can be read from your browser)

Romain

Signature · 3 lines
Romain Perier, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw
In reply to Romain Perier
Quoted 9 lines · Romain Perier

I was, wondering, do you boot with a separated DTB or a legacy boot (concatenated to the Image) ?

Could you test with uImage.armada-385-db-ap [1], that's a legacy Image. Also, I have uploaded a minimalistic rootfs [2], if you want.

1. http://www.free-electrons.com/~romain/pub/cesa/uImage.armada-385-db-ap
2. http://www.free-electrons.com/~romain/pub/cesa/rootfs.cpio.xz

I assume you mean Thomas rather than myself, as I have only Clearfog platforms, which are all Armada 388.

I don't use uImage anymore, except with versions of uboot that are unable to support zImage booting. Where zImage booting is supported, I'm always using a separated DTB. Doing otherwise is insane IMHO.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#8 lore raw

Hello,

Le 19/08/2016 16:21, Russell King - ARM Linux a ?crit :

Quoted 5 lines · Romain Perier
Quoted 4 lines

I was, wondering, do you boot with a separated DTB or a legacy boot (concatenated to the Image) ?

Quoted 8 lines
Quoted 5 lines

Could you test with uImage.armada-385-db-ap [1], that's a legacy Image. Also, I have uploaded a minimalistic rootfs [2], if you want.

1. http://www.free-electrons.com/~romain/pub/cesa/uImage.armada-385-db-ap
2. http://www.free-electrons.com/~romain/pub/cesa/rootfs.cpio.xz

I assume you mean Thomas rather than myself, as I have only Clearfog platforms, which are all Armada 388.

Yep, sorry. I meant, the person who has issues with cesa, i.e radioconfusion at gmail.com :)

Quoted 5 lines

I don't use uImage anymore, except with versions of uboot that are unable to support zImage booting. Where zImage booting is supported, I'm always using a separated DTB. Doing otherwise is insane IMHO.

That's just, we have several ways to boot our Marvell devices, including legacy or non legacy boots, uImage and zImage. Anyway, that's not the point of my previous email.

Romain

Signature · 3 lines
Romain Perier, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com