Kernel 5.0

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

Re: Kernel 5.0

Post by xeno74 »

Please test the RC2.

Thanks
xeno74 wrote:Hi All,

Here is the RC2 of kernel 5.0 for testing.

New:
Please note: I tried to compile the RC2 without the latest DRM updates for the ATI FireMV 2250 and ATI FirePro 2260 from the latest Git kernel today.
Unfortunately there are so many new dependencies because of many new small and big DRM fixes so I wasn't able to remove the first DRM updates today.
The ATI FireMV 2250 and ATI FirePro 2260 work alone without any problems in a X5000 but they don't work with a HD7xxx together anymore.
Ace doesn't have any error messages for us so it is difficult for us to report it to the developers.

Download: vmlinux-5.0-rc2-AmigaOne_X1000_X5000.tar.gz

Screenshot of Fienix with the RC2 of kernel 5.0 connected to a Leopard server:

Image

Please test it.

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

Running Linux on AmigaONEs can require some tinkering.
User avatar
Skateman
Posts: 861
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Kernel 5.0

Post by Skateman »

Kernel 5.0 RC2 is running with no issues on the AmigaOne X5000 :-)

Image

Big picture http://www.skateman.nl/wp-content/uploa ... 205036.png

Keep up the good work Christian
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.0

Post by xeno74 »

Skateman wrote:Kernel 5.0 RC2 is running with no issues on the AmigaOne X5000 :-)

Keep up the good work Christian
Many thanks for testing the RC2! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.0

Post by xeno74 »

Hi Ace,

Please test the RC2 because there are some new DRM fixes included.

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

Running Linux on AmigaONEs can require some tinkering.
acefnq
Posts: 236
Joined: Fri Sep 09, 2011 9:58 am

Re: Kernel 5.0

Post by acefnq »

Christian
With both cards in RC2 boots to Radeon SI card and works fine. Don't worry if you can't remove the DRM from here on in I will generally use my SI and only reverts to the earlier RCs if I want specific 3d support as I am very apprehensive about continually removing my cards (I killed my XE doing that)

Cheers

ace
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.0

Post by xeno74 »

acefnq wrote:Christian
With both cards in RC2 boots to Radeon SI card and works fine. Don't worry if you can't remove the DRM from here on in I will generally use my SI and only reverts to the earlier RCs if I want specific 3d support as I am very apprehensive about continually removing my cards (I killed my XE doing that)

Cheers

ace
Thanks a lot for testing the RC2! :-)

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

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

Re: Kernel 5.0

Post by xeno74 »

Next step: 257002094bc5935dd63207a380d9698ab81f0775 (powerpc/dma: use the dma-direct allocator for coherent platforms)

Code: Select all

git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a

Code: Select all

git checkout 257002094bc5935dd63207a380d9698ab81f0775
Link to the Git: powerpc-dma.6

env LANG=C make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc zImage

The X1000 boots and the PASEMI onboard ethernet works!

Bad news for the X5000 (P5020 board). U-Boot loads the kernel and the dtb file. Then the kernel starts but it doesn't find any hard disks (partitions).
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.0

Post by xeno74 »

FYI *** Update ***: use generic DMA mapping code in powerpc V4

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

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

Re: Kernel 5.0

Post by xeno74 »

FYI:
Christoph Hellwig wrote: Hi Christian,

can you check if the debug printks in this patch trigger?
Patch:

Code: Select all

diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c
index 355d16acee6d..e46c9b64ec0d 100644
--- a/kernel/dma/direct.c
+++ b/kernel/dma/direct.c
@@ -118,8 +118,11 @@ struct page *__dma_direct_alloc_pages(struct device *dev, size_t size,
 			page = NULL;
 		}
 	}
-	if (!page)
+	if (!page) {
 		page = alloc_pages_node(dev_to_node(dev), gfp, page_order);
+		if (!page)
+			pr_warn("failed to allocate memory with gfp 0x%x\n", gfp);
+	}
 
 	if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) {
 		__free_pages(page, page_order);
@@ -139,6 +142,10 @@ struct page *__dma_direct_alloc_pages(struct device *dev, size_t size,
 		}
 	}
 
+	if (!page) {
+		pr_warn("failed to allocate DMA memory!\n");
+		dump_stack();
+	}
 	return page;
 }
Christoph Hellwig wrote: On top of 257002094bc5935dd63207a380d9698ab81f0775, that is the first
one you identified as breaking the detection of the SATA disks.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.0

Post by xeno74 »

A new powerpc-dma.6-debug branch:

Code: Select all

git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6-debug a

Code: Select all

git checkout 257002094bc5935dd63207a380d9698ab81f0775
Link to the Git: powerpc-dma.6-debug
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply