FEL - Amlogic NO support

***AM9 Pro (S905X5) — FEL seek-panic across `Piers_nightly_20260603` (v1 + v2): all three crash sites converge on one root cause — DV metadata processing overflowing the IRQ stack (`call_on_irq_stack`).**

Env:

  • Box: Ugoos AM9 Pro, S905X5, Amlogic-no
  • Module `dovi_gen_5_15_2026`, build hash `11509eb66696b72bbde0fcdbffa500e6f1764eec` (.ko md5 `111434c8839aa5f6ef374ef76ec0a607`)
  • Module load note: `disagrees about version of symbol __stack_chk_fail — please rebuild ko` (loads + inits DV fine: `dv: s6`, `Creating DV mp success`)

Test: P7 FEL title, dual-layer confirmed (two `amvdec_h265`, 4K BL + 1080p EL, `enable_fel 1`/`enable_*mel 1`). Steady playback is flawless on every build (AMDV EL-pairing error count frozen at 1). ****The panic only occurs on skip/seek** (the DV metadata re-parse on a mode transition).

Three builds tested, three distinct crash sites — but the same bottom frame each time:

  1. **Older build** — `Kernel stack is corrupted in: md_parser_evt_handler_cb`
    `dv_md_parser_process → metadata_parser_process → amdv_parse_metadata_v2_stb`. Panicked on the *first* seek.

  2. **`nightly_20260603` v1 (BUILD_ID `968153f8…`)** — survived 5+ seeks over ~12 min, then:
    ```
    Kernel panic: stack-protector: Kernel stack is corrupted in: Commit2DmKs+0xd10/0xd14 [dovi_gen_5_15_2026]
    commit_reg+0x99c/0x2620
    multi_control_path+0xdc8/0x170c
    amdv_control_path+0xbb4/0x13d8
    call_on_irq_stack+0x44/0x84
    ```

  3. **`nightly_20260603` v2 (BUILD_ID `491fe10d…`)** — panicked at ~115s on a seek, and the message is explicit:
    ```
    Kernel panic - not syncing: kernel stack overflow
    pc : ext_block_payload_read+0x64/0x22bc [dovi_gen_5_15_2026]
    ext_block_payload_read (frame ~0x22bc ≈ 8.9 KB)
    ext_blocks_read+0x444/0x5bc
    dm_data_payload_read+0x12a4/0x1550 (~4.7 KB)
    rpu_decoder_process_buffer+0x1cc/0x3dc
    rpu_decoder_get_output+0x128/0x174
    dv_md_parser_process+0x22c/0x330
    metadata_parser_process+0x128/0x31c
    call_on_irq_stack+0x44/0x84
    ```

**Read:** every panic bottoms out at `call_on_irq_stack` — the DV metadata path is running in IRQ context on the (small, ~16 KB) IRQ stack, and these dovi functions carry very large frames (`ext_block_payload_read` ~8.9 KB, `dm_data_payload_read` ~4.7 KB). On a seek’s metadata re-parse the call depth overflows the IRQ stack. Each build just shifts the panic to whichever deep frame happens to tip it over (`md_parser_evt_handler_cb` → `Commit2DmKs/commit_reg` → `ext_block_payload_read`); v2 even reports it as a literal “kernel stack overflow.”

So this looks less like a parser logic bug and more like **the DV RPU/metadata processing needs to come off the IRQ stack** (defer to a workqueue / threaded handler) or the big on-stack buffers in `ext_block_payload_read` / `dm_data_payload_read` / `commit_reg` need to be heap-allocated. Steady playback never trips it; only the seek-time re-parse in IRQ context does.

Full console-ramoops + dmesg-ramoops for both v1 and v2 panics available on request.

1 Like

You where so right. File was corrupted, but am6b+ played it anyway and am9 pro didn’t like it skipping. Thanks for your support

1 Like

What are the steps to install these test builds?

Just copy it with SSH or SMB to the update folder of coreelec and restart your device.

1 Like

Provide a sample to reproduce.

This hide and seek is just annoying.

1 Like

Just looking to confirm process for installing the patched dovi.ko to an existing CE22 install. Is it as follows? (source is copilot)

mount -o remount,rw /flash

cp dovi.ko /flash

sync

and then reboot?

I don’t know what sync does but I do the other steps yes.

Possible locations

/storage/.config/dovi.ko
/flash/dovi.ko
/storage/dovi.ko
2 Likes

Hello.

Just tested DV FEL movies on my Homatics Dune box R 4K plus.

With the original dovi.ko file I would say the brightness was above the roof - not correct picture.

With the latest patched dovi.ko everything shines and the test file plays correct.

Many thanks for the great job :slight_smile:

No sample to repoduce?

Here another test img:
https://test.coreelec.org/Portisch/temp/CoreELEC-Amlogic-no.aarch64-22.0-Piers_nightly_20260604_v3.tar

according to copilot sync ensures the file is actually written to flash storage rather than just held in RAM and avoids risks with partial writes/corruption. But this is outside my areas of expertise.

1 Like

I go to flag them as spam until a valid sample with description how to reproduce will come up.

Device: Ugoos AM9 Pro
SoC: Amlogic S905X5-J
CoreELEC build: CoreELEC-Amlogic-no.aarch64-22.0-Piers_nightly_20260605-Generic
Boot method: SanDisk Extreme A2 128GB microSD

Issue:

Device reboots instantly when seeking during DV FEL (Profile 7) playback. No sad boot screen — just a hard restart. Playback without seeking works fine. Issue is specific to DV FEL (Profile 7) content only. Non-FEL content is unaffected.

Steps already taken:

•	Fresh install of CE-NO nightly (20260605)
•	Tested with 5.15_2.6_dovi_patched.ko
•	Tested with 5.15_2.6_dovi_patched_fix_fel.ko (latest)
•	Issue persists with both modules
•	Tested on Estuary skin


Let me know if what else is needed as it is first time posting a issue

1 Like

Hi Portisch, here are the samples and logs:

Nightcrawler (2014) — FEL Profile 7 — 5 min sample (15:00–20:00):
https://mega.nz/file/aJREyJxR#Mb4uRh6id9YszQbbNOgA9waVzjRx6pkmNeBoKWWihho

Reboot triggers on seek around 2–5 minutes into the sample. Sometimes also reboots during normal playback without seeking.

Crash log with 5.15_2.6_dovi_patched_fix_fel.ko:
https://paste.coreelec.org/WaitinSheesh

Crash log with 5.15_2.6_dovi_patched.ko:
https://paste.coreelec.org/ExpensesRoute

Device: AM9 Pro (S905X5-J). Issue persists with both modules.

2 Likes

Additional finding: Tested on Piers_nightly_20260518 with 5.15_2.6_dovi_patched.ko — FEL seek works fine on that build. Issue not present on 20260518.

1 Like

Device: Homatics Box R 4K Plus
CoreELEC build: CoreELEC-Amlogic-no.aarch64-22.0-Piers_nightly_20260606-Generic
doki file: 5.15_2.6_dovi_patched_fix_fel.ko

FEL works fine, no obvious issues found.


Bonus: I was troubleshooting a strange stutter 4k FEL playback issue for the stable NG 21.3 release, where certain 4k FEL contents trigger a short image delay intermittently while the audio keeps going. Turing Delay after change of refresh rate to 5 seconds can somehow mitigate the issue, but can’t make it go away completely. Turning off dolby vision support can address the issue, but that just misses the point of using coreelec.

I was desperate to try NO build, and it works! It not only fixes the stutter issue, but it also improves the responsiveness of the UI when I go backward and forward. I can also see the FEL information player info.

Huge thanks to the coreelec team!

There is a stable issue here, actually, after running more tests. After playing FEL or MEL dv videos for a while, coreelect will crash and reboot automatically. I didn’t find a crash log under /storage/.kodi/temp

Same issue here with all movies, it occasionally crashes or even restarts when fast-forwarding and skipping or stoping. 1080p 25fps movies are particularly affected.

With Dolby Vision movies, occasionally there’s a synchronization issue after pausing and rebeginn, which is resolved with one or two rewinds.

But CE22-NO is alpha.