Kernel 5.4

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

Re: Kernel 5.4

Post by xeno74 »

xeno74 wrote: Unfortunately this patch doesn't solve the issue. :-(
Hi All,

I have seen that I have activated the kernel config option CONFIG_ARCH_DMA_ADDR_T_64BIT. That means the code in the following patch won't work if this kernel option is enabled.

Code: Select all

+#ifndef CONFIG_ARCH_DMA_ADDR_T_64BIT
+    /* Check if DMA address overflowed */
+    if (min(addr, addr + size - 1) <
+        __phys_to_dma(dev, (phys_addr_t)(min_low_pfn << PAGE_SHIFT)))
+        return false;
+#endif
I will delete the lines with ifndef and endif and will try it again.

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

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

Re: Kernel 5.4

Post by xeno74 »

xeno74 wrote: Hi All,

I have seen that I have activated the kernel config option CONFIG_ARCH_DMA_ADDR_T_64BIT. That means the code in the following patch won't work if this kernel option is enabled.

Code: Select all

+#ifndef CONFIG_ARCH_DMA_ADDR_T_64BIT
+    /* Check if DMA address overflowed */
+    if (min(addr, addr + size - 1) <
+        __phys_to_dma(dev, (phys_addr_t)(min_low_pfn << PAGE_SHIFT)))
+        return false;
+#endif
I will delete the lines with ifndef and endif and will try it again.

Cheers,
Christian
Now, I can definitely say that this patch does not solve the issue.

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

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

Re: Kernel 5.4

Post by xeno74 »

Hi All,

The RC7 of kernel 5.4 has been released for testing.

New:
Download: linux-image-5.4-rc7-X1000_X5000.tar.gz

Please note: There are problems with some PCI cards if you have more than 3.5G RAM in your X5000. If you have this problem please reduce the RAM with the boot argument "mem=3500M". The X1000 isn't affected. We created a bug report a month ago. Link to the bug report: Bug 205201 - Booting halts if Dawicontrol DC-2976 UW SCSI board installed, unless RAM size limited to 3500M

BTW, a new version of ViewTube with new settings is available.

Screenshot of Fienix PowerPC with the kernel 5.4-rc7 and with the new ViewTube:

Image

Please test the kernels.

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

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

Re: Kernel 5.4

Post by Skateman »

Kernel 5.4 RC7 is up and running on the AmigaOne X5000!

Image

Big picture http://www.skateman.nl/wp-content/uploa ... 200815.png
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: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.4

Post by xeno74 »

Skateman wrote:Kernel 5.4 RC7 is up and running on the AmigaOne X5000!
Thanks a lot for testing! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.4

Post by xeno74 »

Skateman,

Good to know that your PCI cards work (see your screenshot).

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

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

Re: Kernel 5.4

Post by Skateman »

I have also had the PCI problems before and changed the PCI Soundblaster card back then...

http://forum.hyperion-entertainment.com ... ive#p43611
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: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.4

Post by xeno74 »

Hi All,

Great news! :-)

The issue with the BT878 TV cards is solved.

GFP_DMA32 was renamed to GFP_DMA in the PowerPC updates 4.21-1 in December last year.

Some PCI devices still use GFP_DMA32 (grep -r GFP_DMA32 *). I renamed GFP_DMA32 to GFP_DMA in the file "drivers/media/v4l2-core/videobuf-dma-sg.c".
After compiling the RC7 of kernel 5.4, my BT878 TV card works again.

I created a patch for renaming GFP_DMA32 to GFP_DMA.

Code: Select all

--- a/drivers/media/v4l2-core/videobuf-dma-sg.c	2019-11-11 01:17:15.000000000 +0100
+++ b/drivers/media/v4l2-core/videobuf-dma-sg.c	2019-11-13 10:07:19.288958966 +0100
@@ -440,7 +440,7 @@ static vm_fault_t videobuf_vm_fault(stru
 	dprintk(3, "fault: fault @ %08lx [vma %08lx-%08lx]\n",
 		vmf->address, vma->vm_start, vma->vm_end);
 
-	page = alloc_page(GFP_USER | __GFP_DMA32);
+	page = alloc_page(GFP_USER | __GFP_DMA);
 	if (!page)
 		return VM_FAULT_OOM;
 	clear_user_highpage(page, vmf->address);
I compiled the RC7-2 with this patch for testing today.

Download: linux-image-5.4-rc7-2-X5000.tar.gz

Screenshot:

Image

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

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

Re: Kernel 5.4

Post by Skateman »

Kernel 5.4 RC7-2 running on the AmigaOne X5000 :-)

Image

Big picture http://www.skateman.nl/wp-content/uploa ... 193606.png
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
Post Reply