Kernel 5.4

AmigaOne X1000 platform specific issues related to Linux only.

Kernel 5.4

Postby xeno74 » Wed Sep 18, 2019 4:38 pm

Hi All,

The Linux 5.4 kernel merge window is open for merging. Linus Torvalds has added a lot of new source code to the Linux Git.

Here is the first alpha of kernel 5.4 for the X1000, X5000, and A1222.

New:


Download: linux-image-5.4-alpha1-X1000_X5000_A1222.tar.gz

Screenshot of Fienix with the first alpha of kernel 5.4:

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

Re: Kernel 5.4

Postby xeno74 » Fri Sep 20, 2019 2:08 pm

Hi All,

I released the second alpha of kernel 5.4 for the X1000, X5000, and A1222 today.

New:


Download: linux-image-5.4-alpha2-X1000_X5000_A1222.tar.gz

Unfortunately it doesn't boot with my Radeon Northern Islands graphics cards anymore. I tested it with a Radeon HD6870 and with a Radeon HD4870.

The kernel boots with a Radeon SI graphics card. (R7 240)

I reverted the latest DRM updates and after that the kernel boots with my Radeon HD6870 and with my Radeon HD4870 without any problems. If you have the same issue please test the kernels from the following package.

Download: linux-image-5.4-alpha2-X1000_X5000_without_DRM_updates--2019-09-18.tar.gz

I reported this issue on the mesa-dev mailing list today.

Screenshot of Debian 10 PowerPCSPE with the second alpha of kernel 5.4:

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

Re: Kernel 5.4

Postby xeno74 » Sat Sep 21, 2019 9:05 am

Hi All,

I created a bug report because of the boot problem with Radeon NI graphics cards today.

Link: Bug 111761 - Latest Git Kernel doesn’t boot with Radeon NI with the drm-next-2019-09-18 updates

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

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

Re: Kernel 5.4

Postby xeno74 » Mon Sep 23, 2019 10:22 pm

xeno74 wrote:Hi All,

I created a bug report because of the boot problem with Radeon NI graphics cards today.

Link: Bug 111761 - Latest Git Kernel doesn’t boot with Radeon NI with the drm-next-2019-09-18 updates

Cheers,
Christian


Hi All,

The changes of the following files are responsible for the boot issue.

  • drivers/gpu/drm/drm_*
  • include/drm/*

The kernel doesn't boot with the updates in the files above from the drm-next-2019-09-18.

I updated the bug report "Bug 111761 - Latest Git Kernel doesn’t boot with Radeon NI with the drm-next-2019-09-18 updates" today.

PLEASE test the alpha2 with your Radeon SI graphics card.

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

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

Re: Kernel 5.4

Postby xeno74 » Tue Sep 24, 2019 12:10 am

I created a patch today. This patch reverts the changes in the following files.

  • drivers/gpu/drm/drm_*
  • include/drm/*

It also reverts all files which depends on these files above.

Now I can boot the latest Git kernel with my Radeon HD NI graphics cards again.

Download: drm2.patch
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.4

Postby xeno74 » Tue Sep 24, 2019 9:29 am

Hi All,

Here is the third alpha of kernel 5.4 for testing.

New:


Download: linux-image-5.4-alpha3-X1000_X5000_A1222.tar.gz

Screenshot of Debian 10 PowerPCSPE with the third alpha of kernel 5.4 on the A1222:

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

Re: Kernel 5.4

Postby xeno74 » Thu Sep 26, 2019 10:43 am

Hi All,

Great news! :-)

Alex released a new DRM patch because of the boot issue with Radeon NI graphics cards yesterday. I compiled the latest Git kernel with this patch today. After that I could boot this kernel with my Radeon NI graphics cards without any problems! :-)

drm3.patch:

Code: Select all
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index c456c3d..769feef 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -976,14 +976,14 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
    if (ret)
       goto err_minors;
 
+   dev->registered = true;
+
    if (dev->driver->load) {
       ret = dev->driver->load(dev, flags);
       if (ret)
          goto err_minors;
    }
 
-   dev->registered = true;
-
    if (drm_core_check_feature(dev, DRIVER_MODESET))
       drm_modeset_register_all(dev);
 
diff --git a/drivers/gpu/drm/drm_mode_object.c b/drivers/gpu/drm/drm_mode_object.c
index c355ba8..6a23e36 100644
--- a/drivers/gpu/drm/drm_mode_object.c
+++ b/drivers/gpu/drm/drm_mode_object.c
@@ -42,7 +42,7 @@ int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj,
 {
    int ret;
 
-   WARN_ON(dev->registered && !obj_free_cb);
+   WARN_ON(!dev->driver->load && dev->registered && !obj_free_cb);
 
    mutex_lock(&dev->mode_config.idr_mutex);
    ret = idr_alloc(&dev->mode_config.object_idr, register_obj ? obj : NULL,
@@ -104,7 +104,7 @@ void drm_mode_object_register(struct drm_device *dev,
 void drm_mode_object_unregister(struct drm_device *dev,
             struct drm_mode_object *object)
 {
-   WARN_ON(dev->registered && !object->free_cb);
+   WARN_ON(!dev->driver->load && dev->registered && !object->free_cb);
 
    mutex_lock(&dev->mode_config.idr_mutex);
    if (object->id) {


Link to the bug report: Bug 111761 - Latest Git Kernel doesn’t boot with Radeon NI with the drm-next-2019-09-18 updates

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

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

Re: Kernel 5.4

Postby xeno74 » Fri Sep 27, 2019 9:22 am

Hi All,

I released the alpha4 of kernel 5.4 for the X1000, X5000, and A1222 today.

New:


Download: linux-image-5.4-alpha4-X1000_X5000_A1222.tar.gz

Screenshot of Debian 10 PowerPCSPE with the alpha4 of kernel 5.4 on the A1222 (Tabor board):

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

Re: Kernel 5.4

Postby xeno74 » Sat Sep 28, 2019 5:53 am

The new drm3.patch has been added to the latest Git kernel. :-)

Link: DRM fixes drm-next-2019-09-27
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.4

Postby xeno74 » Sun Sep 29, 2019 9:29 am

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

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

Next

Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: No registered users and 3 guests

cron