Page 12 of 19

Re: Kernel 5.0

Posted: Tue Jan 15, 2019 7:54 pm
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

Re: Kernel 5.0

Posted: Tue Jan 15, 2019 8:54 pm
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

Re: Kernel 5.0

Posted: Wed Jan 16, 2019 5:28 am
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! :-)

Re: Kernel 5.0

Posted: Wed Jan 16, 2019 5:37 am
by xeno74
Hi Ace,

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

Thanks,
Christian

Re: Kernel 5.0

Posted: Thu Jan 17, 2019 3:32 am
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

Re: Kernel 5.0

Posted: Thu Jan 17, 2019 7:17 am
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

Re: Kernel 5.0

Posted: Thu Jan 17, 2019 7:43 am
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).

Re: Kernel 5.0

Posted: Thu Jan 17, 2019 1:36 pm
by xeno74
FYI *** Update ***: use generic DMA mapping code in powerpc V4

-- Christian

Re: Kernel 5.0

Posted: Fri Jan 18, 2019 11:57 am
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.

Re: Kernel 5.0

Posted: Fri Jan 18, 2019 2:59 pm
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