Page 12 of 14

Re: Kernel 5.4

Posted: Thu Nov 07, 2019 10:23 am
by xeno74

Re: Kernel 5.4

Posted: Mon Nov 11, 2019 8:41 am
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

Re: Kernel 5.4

Posted: Mon Nov 11, 2019 1:13 pm
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

Re: Kernel 5.4

Posted: Mon Nov 11, 2019 6:02 pm
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

Re: Kernel 5.4

Posted: Mon Nov 11, 2019 8:10 pm
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

Re: Kernel 5.4

Posted: Tue Nov 12, 2019 4:26 am
by xeno74
Skateman wrote:Kernel 5.4 RC7 is up and running on the AmigaOne X5000!
Thanks a lot for testing! :-)

Re: Kernel 5.4

Posted: Tue Nov 12, 2019 4:35 am
by xeno74
Skateman,

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

Cheers,
Christian

Re: Kernel 5.4

Posted: Tue Nov 12, 2019 6:55 pm
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

Re: Kernel 5.4

Posted: Wed Nov 13, 2019 2:03 pm
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

Re: Kernel 5.4

Posted: Thu Nov 14, 2019 7:38 pm
by Skateman
Kernel 5.4 RC7-2 running on the AmigaOne X5000 :-)

Image

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