Kernel 4.4

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

Hi All,

I have tested the PA Semi Ethernet with the kernels 4.2.3 and 4.3.0 today. With the kernel 4.2.3 it works but with the kernel 4.3.0 final it doesn't work.

After that I tested some alphas and release candidates of the kernel 4.3.

Kernel 4.3 alpha1 (Tue Sep 01, 2015) -> PA Semi Ethernet works
Kernel 4.3 alpha2 (Wed Sep 02, 2015) -> PA Semi Ethernet works
Kernel 4.3 alpha3 (Thu Sep 03, 2015) -> PA Semi Ethernet works
Kernel 4.3 alpha4 (Fri Sep 04, 2015) -> PA Semi Ethernet doesn't work (Merge tag 'powerpc-4.3-1': https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ff474e8ca8547d09cb82ebab56d4c96f9eea01ce)
Kernel 4.3 alpha5 (Sat Sep 05, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 alpha6 (Mon Sep 07, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 alpha7 (Wed Sep 09, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 alpha8 (Fri Sep 11, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 RC1 (Sun Sep 13, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 RC2 (Mon Sep 21, 2015) -> PA Semi Ethernet doesn't work

Cheers,

Christian
User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

Hi all,

I compiled a lot of kernels for some git bisects and I have a result. :-)

Test log

Code: Select all

Kernel 4.3 git from Tue Sep 01, 2015 -> PA Semi Ethernet works
Kernel 4.3 git from Wed Sep 02, 2015 -> PA Semi Ethernet works
Kernel 4.3 git from Thu Sep 03, 2015 -> PA Semi Ethernet works
Kernel 4.3 git from Fri Sep 04, 2015 -> PA Semi Ethernet doesn't work
Kernel 4.3 git from Sat Sep 05, 2015 -> PA Semi Ethernet doesn't work
Kernel 4.3 git from Mon Sep 07, 2015 -> PA Semi Ethernet doesn't work
Kernel 4.3 git from Wed Sep 09, 2015 -> PA Semi Ethernet doesn't work
Kernel 4.3 git from Fri Sep 11, 2015 -> PA Semi Ethernet doesn't work
Kernel 4.3 RC1 from Sun Sep 13, 2015 -> PA Semi Ethernet doesn't work
Kernel 4.3 RC2 from Mon Sep 21, 2015 -> PA Semi Ethernet doesn't work

Intern:

Kernel 4.3 alpha1 (Tue Sep 01, 2015) -> PA Semi Ethernet works
Kernel 4.3 alpha2 (Wed Sep 02, 2015) -> PA Semi Ethernet works
Kernel 4.3 alpha3 (Thu Sep 03, 2015) -> PA Semi Ethernet works
Kernel 4.3 alpha4 (Fri Sep 04, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 alpha5 (Sat Sep 05, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 alpha6 (Mon Sep 07, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 alpha7 (Wed Sep 09, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 alpha8 (Fri Sep 11, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 RC1 (Sun Sep 13, 2015) -> PA Semi Ethernet doesn't work
Kernel 4.3 RC2 (Mon Sep 21, 2015) -> PA Semi Ethernet doesn't work

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-git

git bisect start

git bisect good ac0e137ab0da80e8fc0db2027598e2f7f82a5a02 2015-09-03 00:07:10 (GMT)

git bisect bad 559ec2f8fd50981821621f52db5e1a8ffcf8d792 2015-09-04 23:54:41 (GMT)

Output:

Bisecting: a merge base must be tested
[ba30011577330b7e29ecb5916d89c6db9fbc5b3d] clk: s5pv210: add missing call to samsung_clk_of_add_provider()

---

git bisect good

Output:

Bisecting: 4381 revisions left to test after this (roughly 12 steps)
[3959df1dfb9538498ec3372a2d390bc7fbdbfac2] Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

---

git bisect good

Output:

Bisecting: 2561 revisions left to test after this (roughly 11 steps)
[1e1a4e8f439113b7820bc7150569f685e1cc2b43] Merge tag 'dm-4.3-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm

---

git bisect good

Output:

Bisecting: 1280 revisions left to test after this (roughly 10 steps)
[94c10f0ea303473884f69edd6bbb0cedcf570105] ah4: Fix error return in ah_input().

---

git bisect good

Output:

Bisecting: 697 revisions left to test after this (roughly 9 steps)
[4c92b5bb14226faa16d29a1df5752baf1ff22b53] Merge branch 'pcmcia' of git://ftp.arm.linux.org.uk/~rmk/linux-arm (2015-09-03 23:36:33 (GMT) nemo_4.3-2.patch)

---

git bisect good

Output:

Bisecting: 310 revisions left to test after this (roughly 9 steps)
[a4fdb2a46f617b8b2cd47acec026ec16532edbc6] Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux (2015-09-04 14:18:09 (GMT) nemo_4.3-3.patch)

---

git bisect bad

Output:

Bisecting: 237 revisions left to test after this (roughly 8 steps)
[2db97045aa40da4312f7321845bc52b136c8603a] Merge branch '4.2-fixes' into mips-for-linux-next (2015-09-03 12:06:33 (GMT))

---

git bisect good

Output:

Bisecting: 132 revisions left to test after this (roughly 7 steps)
[d690740f22f6520873f96e66aae7119ec2215755] powerpc/powernv: Enable LEDS support (2015-08-27 10:08:44 (GMT))

---

git bisect good

Output:

Bisecting: 66 revisions left to test after this (roughly 6 steps)
[662ba3dbceca3ca284885a464ecb8c936f417003] arm64: mm: add __init section marker to free_initrd_mem (2015-07-27 17:29:18 (GMT))

---

git bisect good

Output:

Bisecting: 33 revisions left to test after this (roughly 5 steps)
[259800135c654a098d9f0adfdd3d1f20eef1f231] powerpc/eeh: Fix fenced PHB caused by eeh_slot_error_detail() (2015-08-28 03:26:31 (GMT))

---

git bisect good

Output:

Bisecting: 16 revisions left to test after this (roughly 4 steps)
[04b8637be92f284409651088f3856f4290a931d8] arm64: alternatives: ensure secondary CPUs execute ISB after patching (2015-08-04 17:52:09 (GMT))

---

git bisect good

Output:

Bisecting: 8 revisions left to test after this (roughly 3 steps)
[8eafeb48022816513abc4f440bdad4c350fe81a3] of/fdt: make memblock maximum physical address arch configurable (2015-08-24 09:23:13 (GMT))

---

git bisect good

Output:

Bisecting: 4 revisions left to test after this (roughly 2 steps)
[ff474e8ca8547d09cb82ebab56d4c96f9eea01ce] Merge tag 'powerpc-4.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (2015-09-03 23:41:38 (GMT)  nemo_4.3-3.patch)

---

git bisect bad

Output:

Bisecting: 1 revision left to test after this (roughly 1 step)
[55e07668fbba9466e6a9ef7650718356cda38406] cxl: Fix force unmapping mmaps of contexts allocated through the kernel api (2015-08-30 08:47:26 (GMT))

---

git bisect good

Output:

Bisecting: 0 revisions left to test after this (roughly 0 steps)
[390fd5929f52bdfb9dfcc03820041ba556780f4a] cxl: Set up and enable PSL Timebase (2015-08-30 08:56:34 (GMT))

---

git bisect good

Output:

ff474e8ca8547d09cb82ebab56d4c96f9eea01ce is the first bad commit (Merge tag 'powerpc-4.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (2015-09-03 23:41:38 (GMT))

---
Cheers,

Christian
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: Kernel 4.4

Post by zzd10h »

Have a good hunt :D
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

FYI:

[P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board? - Linuxppc-dev -- Linux on PowerPC Developers Mail List

[P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board? - Linux Netdev Mail List
Michael Ellerman wrote: My pasemi is booting OK, but I haven't had time to test the network. If you
remind me next week I will make sure network is working on my board.

Are you testing your board with your additional patch as well? Or just vanilla
mainline?

cheers
Alex tested some kernels on his P.A. Semi Electra reference board.
Alex wrote: Christian,

Both kernels you built for me have the same result…ultimately, ethernet does not work, though on the reference board, the interface is detected, gets link, but will not pass any packets/traffic.
Image
User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

Hi all,

I checked out the Linux git till the commit 'powerpc-4.3-1'

Code: Select all

git checkout ff474e8ca8547d09cb82ebab56d4c96f9eea01ce
Checking out files: 100% (13843/13843), done.
Note: checking out 'ff474e8ca8547d09cb82ebab56d4c96f9eea01ce'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD ist jetzt bei ff474e8... Merge tag 'powerpc-4.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
The P.A. Semi Ethernet doesn't work with the powerpc-4.3-1 merge. I reverted this merge with:

Code: Select all

git revert ff474e8ca8547d09cb82ebab56d4c96f9eea01ce -m 1
Committer: christian <[email protected]>
Ihr Name und E-Mail Adresse wurden automatisch auf Basis
Ihres Benutzer- und Rechnernamens konfiguriert. Bitte prüfen Sie, dass
diese zutreffend sind. Sie können diese Meldung unterdrücken, indem Sie
diese explizit setzen:

git config --global user.name "Ihr Name"
git config --global user.email [email protected]

Nachdem Sie das getan hast, können Sie Ihre Identität für diesen Commit ändern mit:

git commit --amend --reset-author

146 files changed, 2047 insertions(+), 3609 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/leds/leds-powernv.txt
delete mode 100644 Documentation/devicetree/bindings/powerpc/fsl/scfg.txt
delete mode 100644 arch/powerpc/boot/dts/t1040d4rdb.dts
delete mode 100644 arch/powerpc/boot/dts/t1042d4rdb.dts
delete mode 100644 arch/powerpc/boot/dts/t104xd4rdb.dtsi
delete mode 100644 arch/powerpc/configs/85xx-32bit.config
delete mode 100644 arch/powerpc/configs/85xx-64bit.config
delete mode 100644 arch/powerpc/configs/85xx-hw.config
delete mode 100644 arch/powerpc/configs/85xx-smp.config
delete mode 100644 arch/powerpc/configs/altivec.config
create mode 100644 arch/powerpc/configs/corenet32_smp_defconfig
rename arch/powerpc/configs/{fsl-emb-nonhw.config => corenet64_smp_defconfig} (50%)
delete mode 100644 arch/powerpc/configs/corenet_basic_defconfig
delete mode 100644 arch/powerpc/configs/mpc85xx_basic_defconfig
create mode 100644 arch/powerpc/configs/mpc85xx_defconfig
create mode 100644 arch/powerpc/configs/mpc85xx_smp_defconfig
delete mode 100644 arch/powerpc/include/asm/trace_clock.h
delete mode 100644 arch/powerpc/kernel/trace_clock.c
rewrite arch/powerpc/platforms/powernv/opal-power.c (76%)
delete mode 100644 drivers/leds/leds-powernv.c
After that the P.A. Semi Ethernet works without any problems.

Cheers,

Christian
User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

Hi all,

I have some good news for you. I was able to fix the issue with the P.A. Semi Ethernet. It was a problem with the new DMA handling. The patch ' [RFC/PATCH,v2] powerpc/iommu: Support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask' is the problem.

I had patched the following files before I compiled a kernel.

Code: Select all

arch/powerpc/Kconfig
arch/powerpc/include/asm/device.h
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/include/asm/iommu.h
arch/powerpc/kernel/dma-iommu.c
arch/powerpc/kernel/dma-swiotlb.c
arch/powerpc/kernel/dma.c
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/pseries/iommu.c
arch/powerpc/sysdev/dart_iommu.c
include/asm-generic/dma-mapping-common.h
The P.A. Semi Ethernet works again with the patched kernel.

Here is the new Nemo patch for the RC4-2: nemo_4.4-3.patch.

I am happy. :-)

Cheers,

Christian
User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

I think it is not necessary to patch the files "powernv/pci-ioda.c" and "pseries/iommu.c". I reverted the whole patch so these files were also patched. We have to wait for the official patch. I have just informed Michael about the problematic DMA patch.
User avatar
xeno74
Posts: 10707
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Kernel 4.4

Post by xeno74 »

I have released the RC4 for testing.

New:
Download: vmlinux-4.4-rc4-2-AmigaONE_X1000.tar.gz

Image

PLEASE use the longterm kernel 4.1 if you want a stable and reliable kernel for your AmigaONE X1000.
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

Re: Kernel 4.4

Post by Srtest »

Works (and thanks :-). I have a conflict that can't be resolved between the binary AMD firmware and the basic Ubuntu linux firmware: linux-firmware linux-image-powerpc64-smp linux-powerpc64-smp
Attachments
test1.png
Post Reply