Kernel 5.4

AmigaOne X5000 platform specific issues related to Linux only.

Re: Kernel 5.4

Postby xeno74 » Thu Nov 07, 2019 11:23 am

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

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

Re: Kernel 5.4

Postby xeno74 » Mon Nov 11, 2019 9:41 am

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: 5360
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 5.4

Postby xeno74 » Mon Nov 11, 2019 2:13 pm

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: 5360
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 5.4

Postby xeno74 » Mon Nov 11, 2019 7:02 pm

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
xeno74
 
Posts: 5360
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 5.4

Postby Skateman » Mon Nov 11, 2019 9:10 pm

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

Image

Big picture http://www.skateman.nl/wp-content/uploads/2019/11/Screenshot-at-2019-11-11-200815.png
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
User avatar
Skateman
 
Posts: 375
Joined: Thu Aug 10, 2017 9:36 pm
Location: The Netherlands

Re: Kernel 5.4

Postby xeno74 » Tue Nov 12, 2019 5:26 am

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: 5360
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 5.4

Postby xeno74 » Tue Nov 12, 2019 5:35 am

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
xeno74
 
Posts: 5360
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 5.4

Postby Skateman » Tue Nov 12, 2019 7:55 pm

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

viewtopic.php?f=58&t=3926&p=43611&hilit=soundblaster+live#p43611
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
User avatar
Skateman
 
Posts: 375
Joined: Thu Aug 10, 2017 9:36 pm
Location: The Netherlands

Re: Kernel 5.4

Postby xeno74 » Wed Nov 13, 2019 3:03 pm

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
xeno74
 
Posts: 5360
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 5.4

Postby Skateman » Thu Nov 14, 2019 8:38 pm

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

Image

Big picture http://www.skateman.nl/wp-content/uploads/2019/11/Screenshot-at-2019-11-14-193606.png
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
User avatar
Skateman
 
Posts: 375
Joined: Thu Aug 10, 2017 9:36 pm
Location: The Netherlands

PreviousNext

Return to Platform: AmigaOne X5000 - Linux Only

Who is online

Users browsing this forum: No registered users and 4 guests