Please upgrade the kernel for Ubuntu 18.04 and 20.04 to fix kernel regression bug!

Pieter Jordaan
Pieter Jordaan New Member Posts: 12

Hi

There is a regression issue in kernel 5.4.0 relating to the i915 driver. The GPU hangs when doing hardware rendering or video decoding/encoding which we make plenty use of.

See the related launchpad issue:
system hang: i915 Resetting rcs0 for hang on rcs0

In general, isn't there an alternative to patching the kernel in order to obtain GPIO etc? Wouldn't a module suffice? I'm asking as a layman in all things kernel.

Comments

  • camillus
    camillus Administrator, Moderator, AAEON Posts: 188 admin

    Hi @Pieter Jordaan ,

    We will like to reproduce this issue, Can you inform which device and ubuntu version and how to replicate this.

    Best regards,

  • Pieter Jordaan
    Pieter Jordaan New Member Posts: 12
    edited May 2022

    @camillus said:
    Hi @Pieter Jordaan ,

    We will like to reproduce this issue, Can you inform which device and ubuntu version and how to replicate this.

    Best regards,

    Sorry for never replying, I must have missed the email notification.

    I get a GPU crash as below:

    [14767.804826] i915 0000:00:02.0: [drm] GPU HANG: ecode 8:1:8fd8ffff, in gst-launch-1.0 [464476]
    [14767.805848] i915 0000:00:02.0: [drm] Resetting rcs0 for stopped heartbeat on rcs0
    [14767.805867] i915 0000:00:02.0: [drm] gst-launch-1.0[464476] context reset due to GPU hang
    [14782.909680] i915 0000:00:02.0: [drm] GPU HANG: ecode 8:1:8fd8ffff, in gst-launch-1.0 [464476]
    [14782.910709] i915 0000:00:02.0: [drm] Resetting rcs0 for stopped heartbeat on rcs0
    [14782.910729] i915 0000:00:02.0: [drm] gst-launch-1.0[464476] context reset due to GPU hang
    [14787.811970] Fence expiration time out i915-0000:00:02.0:gst-launch-1.0[464476]:2f0!
    [14787.813041] i915 0000:00:02.0: [drm] Resetting rcs0 for request cancellation by kworker/1:0
    [14787.813064] i915 0000:00:02.0: [drm] gst-launch-1.0[464476] context reset due to GPU hang
    

    When using the UP provided kernel (5.4) and also the HWE 5.13 branch on Ubuntu 20.04.

    With 5.11 it works, but since there is no upboard features GPIO is not available.

    You can reproduce this by having an x-capable installation and running the following gstreamer commands:

    for i in {1..10}; do DISPLAY=:0 GST_VAAPI_ALL_DRIVERS=1 gst-launch-1.0  videotestsrc ! "video/x-raw,width=400,height=300,framerate=5/1,format=I420" ! videoconvert ! queue ! vaapih264enc ! "video/x-h264" ! h264parse ! queue ! vaapidecodebin ! glimagesink sync=false & done
    

    It should hang within a couple of seconds on an UP. I believe it is due to the hardware video decoding/encoding which has an issue with this specific CPU family and kernel version.

    Similar GPU bugs have been listed on other Intel families.

    Note I have tried the 5.8 branch provided here https://launchpad.net/~up-devision/+archive/ubuntu/5.8-upboard and that solves the GPU hang, however GPIO and other hardware modules are not present as linux-image-extras is not shipped in that PPA I assume.

  • UpBored
    UpBored New Member Posts: 16

    Can confirm as well, even on the new PPA.

  • Pieter Jordaan
    Pieter Jordaan New Member Posts: 12

    @UpBored said:
    Can confirm as well, even on the new PPA.

    The annoying thing is 5.8 kernel (https://launchpad.net/~up-division/+archive/ubuntu/5.8-upboard/+packages) fixes the GPU hang, but upboard GPIO doesn't work. Any update @camillus ? This is really a blocker at the moment.

  • Pieter Jordaan
    Pieter Jordaan New Member Posts: 12

    Any news on this?

  • DCleri
    DCleri Administrator, AAEON Posts: 1,213 admin

    We don't plan to release updated drivers for the first UP Board on newer kernel, nor release kernel updates for evaluation.

    The driver source code is publicly available and it is possible to recompile the kernel with newer version, if you want.

    If you need dedicated support for your project, you can contact us via the up-shop and request a dedicated service to provide you a custom kernel (specific version, patches and so on).

  • Pieter Jordaan
    Pieter Jordaan New Member Posts: 12

    @DCleri said:
    We don't plan to release updated drivers for the first UP Board on newer kernel, nor release kernel updates for evaluation.

    The driver source code is publicly available and it is possible to recompile the kernel with newer version, if you want.

    If you need dedicated support for your project, you can contact us via the up-shop and request a dedicated service to provide you a custom kernel (specific version, patches and so on).

    @DCleri that is a real shame to be honest.

    Can you please share the public repository for the current supported kernel and drivers?

  • DCleri
    DCleri Administrator, AAEON Posts: 1,213 admin

    Here is the public repository for Ubuntu kernel for UP, including UP Board (and its source code):
    https://launchpad.net/~up-division/+archive/ubuntu/5.4-upboard/+packages

    This is the Github repository: https://github.com/up-division/ubuntu-bionic-up

  • UpBored
    UpBored New Member Posts: 16

    @Pieter Jordaan said:

    @DCleri said:
    We don't plan to release updated drivers for the first UP Board on newer kernel, nor release kernel updates for evaluation.

    The driver source code is publicly available and it is possible to recompile the kernel with newer version, if you want.

    If you need dedicated support for your project, you can contact us via the up-shop and request a dedicated service to provide you a custom kernel (specific version, patches and so on).

    @DCleri that is a real shame to be honest.

    Can you please share the public repository for the current supported kernel and drivers?

    If someone is so inclined, they could start merging and distributing using https://openbuildservice.org/ for all major distributions or perhaps get Linuxium, DietPi, or Armbian to carry the drivers/modifications within their kernel until the quirks can be mainlined or as a stopgap?

Privacy Policy