Kernel 4.21

AmigaOne X1000 platform specific issues related to Linux only.

Kernel 4.21

Postby xeno74 » Thu Nov 29, 2018 1:45 pm

Hi All,

The kernel developers want to use the generic DMA mapping code for PowerPC machines. They modified the source code for testing. Maybe they want to add it to the kernel 4.21. I compiled a test kernel with this DMA code today. You can get it via the following Git:

http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.4

Command:

Code: Select all
git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.4 a


Unfortunately I get some DMA error messages and the PASEMI ethernet doesn't work on my X1000 anymore.

Code: Select all
[  367.627623] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.627631] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.627639] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.627647] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.627655] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.627686] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.628418] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.628505] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.628592] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.629324] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.629417] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.629495] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0
[  367.629589] pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0


Code: Select all
[  430.424732]pasemi_mac: rcmdsta error: 0x04ef3001


Unfortunately the X5000 doesn't boot. U-Boot loads the dtb file and the kernel and after that the booting stops.

Cheers,
Christian
Last edited by xeno74 on Thu Nov 29, 2018 5:20 pm, edited 2 times in total.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Thu Nov 29, 2018 2:13 pm

I reported these issues with the PASEMI ethernet and the X5000 to the kernel developers: use generic DMA mapping code in powerpc V4
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Fri Nov 30, 2018 10:57 am

Hi All,

A PowerMac G5 has also problems with the new DMA mapping code.

Link to the test thread: use generic DMA mapping code in powerpc V4

Hi, Christoph,

I'm sorry, but this series makes nouveau my Power Mac G5 very unhappy.
Dmesg and .config attached.
Let me know if you need anything else to help you debug this, I'm
happy to help with testing.

Thanks,
Rui


Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Fri Nov 30, 2018 2:38 pm

Hi All,

Christoph has released a patch for the X5000. I patched his Git kernel and after that I compiled it again. U-Boot loads the kernel and the dtb file. Then the kernel starts
but it doesn't find any hard disks (partitions).
Unfortunately he hasn't had an idea because of the PASEMI ethernet yet. I reported him the PASEMI ethernet issues from the past. I hope it helps him to fix the issue.

Link to the test thread: use generic DMA mapping code in powerpc V4

@Darren
Could you please also test Christoph's kernel on your X1000 and X5000? Download:

Code: Select all
git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.4 a


*PLEASE*

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Fri Nov 30, 2018 3:50 pm

New download:

Code: Select all
git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.5 a


Please test it.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Fri Nov 30, 2018 5:38 pm

Hi All,

I compiled the version 5 of his Git kernel and tested it today. Unfortunately the PASEMI ethernet doesn't work.

Error message:

Code: Select all
pci 0000:00:1a.0: dma_direct_map_page: overflow 0x000000026bcb5002+110 of device mask ffffffff bus mask 0


I reported the result to Christoph. Link: use generic DMA mapping code in powerpc V4

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Wed Dec 05, 2018 12:14 am

Hi All,

I undid all dma mapping commits with the following command:

Code: Select all
git checkout 721c01ba8b46ddb5355bd6e6b3bbfdabfdf01e97


I would like to figure out if the dma mappings are the problem. I compiled the kernels with this code for the X1000 and X5000 today.

Result: PASEMI onboard ethernet works again and the X5000 boots. It seems the dma mapping commits are the problem.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Wed Dec 05, 2018 4:34 pm

Christoph Hellwig wrote:> Thanks for your reply. I undid all dma mapping commits with the following
> command:
>
> git checkout 721c01ba8b46ddb5355bd6e6b3bbfdabfdf01e97
>
> After that I compiled the kernels with this code for my P5020 board (Cyrus)
> and for my PASEMI board (Nemo) today.
>
> Result: PASEMI onboard ethernet works again and the P5020 board boots.
>
> It seems the dma mapping commits are the problem.

Thanks. Can you try a few stepping points in the tree?

First just with commit 7fd3bb05b73beea1f9840b505aa09beb9c75a8c6
(the first one) applied?

Second with all commits up to 5da11e49df21f21dac25a2491aa788307bdacb6b

And if that still works with commits up to
c1bfcad4b0cf38ce5b00f7ad880d3a13484c123a


I undid the commit 7fd3bb05b73beea1f9840b505aa09beb9c75a8c6 with the following command:

Code: Select all
git checkout 7fd3bb05b73beea1f9840b505aa09beb9c75a8c6


Result: PASEMI onboard ethernet works again and the P5020 board boots.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Fri Dec 07, 2018 11:09 am

Today I tested the commit 5da11e49df21f21dac25a2491aa788307bdacb6b.

Code: Select all
git checkout 5da11e49df21f21dac25a2491aa788307bdacb6b


The PASEMI onboard ethernet works and the X5000 boots.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.21

Postby xeno74 » Fri Dec 07, 2018 4:08 pm

Next step: 13c1fdec5682b6e13257277fa16aa31f342d167d (powerpc/dma: move pci_dma_dev_setup_swiotlb to fsl_pci.c)

Code: Select all
git checkout 13c1fdec5682b6e13257277fa16aa31f342d167d


Link to the Git: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.5

The PASEMI onboard ethernet works and the X5000 boots.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4218
Joined: Fri Mar 23, 2012 8:58 am

Next

Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: No registered users and 4 guests

cron