Tone-mapping slow after upgrading kernel. #17

Closed
opened 2025-12-23 10:30:31 +01:00 by backuprepo · 7 comments
Owner

Originally created by @FirstMelody on GitHub (Feb 22, 2024).

After upgrading the kernel from 5.1 to 6.1 (orangepi-linux latest kernel),tone-mapping got super slow even upgraded opencl driver.
Both latest and v1.9-1-3381696 is not functioning correctly.

Before upgrading the kernel, everything is fine with legacy opencl driver.

Orange Pi 1.1.8 Bookworm with Linux 6.1.43-rockchip-rk3588

clinfo output:
https://pastebin.com/eH0YEEfB

Jellyfin-ffmpeg log:
https://pastebin.com/fpUN4JMG

docker-compose.yml:
https://pastebin.com/jrbsDvrK

Originally created by @FirstMelody on GitHub (Feb 22, 2024). After upgrading the kernel from 5.1 to 6.1 (orangepi-linux latest kernel),tone-mapping got super slow even upgraded opencl driver. Both latest and v1.9-1-3381696 is not functioning correctly. Before upgrading the kernel, everything is fine with legacy opencl driver. Orange Pi 1.1.8 Bookworm with Linux 6.1.43-rockchip-rk3588 clinfo output: https://pastebin.com/eH0YEEfB Jellyfin-ffmpeg log: https://pastebin.com/fpUN4JMG docker-compose.yml: https://pastebin.com/jrbsDvrK
backuprepo 2025-12-23 10:30:31 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Feb 22, 2024):

OpenCL performance that is lower than expected can usually be caused by two reasons:

  • Mali CSF firmware version and bifrost kernel driver version do not match. See also #24
  • The power supply output power is insufficient, causing the GPU to throttle or reduce frequency.
@nyanmisaka commented on GitHub (Feb 22, 2024): OpenCL performance that is lower than expected can usually be caused by two reasons: - Mali CSF firmware version and bifrost kernel driver version do not match. See also #24 - The power supply output power is insufficient, causing the GPU to throttle or reduce frequency.
Author
Owner

@FirstMelody commented on GitHub (Feb 22, 2024):

OpenCL performance that is lower than expected can usually be caused by two reasons:

Thanks for your prompt reply!

I've checked the issue and tried three version of mali csf firmware(I am using valhall), latest and two versions you mentioned in the issue.
And power supply is also unlikely the cause of the issue for that it was performing normally before upgrading and it was came with orangepi5

@FirstMelody commented on GitHub (Feb 22, 2024): > OpenCL performance that is lower than expected can usually be caused by two reasons: > > * Mali CSF firmware version and bifrost kernel driver version do not match. See also [更换了Armbian_23.11.1_Orangepi5-plus_bookworm_legacy_5.10.160.img后好像hevc 10解码失效了😭 #24](https://github.com/nyanmisaka/ffmpeg-rockchip/issues/24) > * The power supply output power is insufficient, causing the GPU to throttle or reduce frequency. Thanks for your prompt reply! I've checked the issue and tried three version of mali csf firmware(I am using valhall), latest and two versions you mentioned in the issue. And power supply is also unlikely the cause of the issue for that it was performing normally before upgrading and it was came with orangepi5
Author
Owner

@nyanmisaka commented on GitHub (Feb 22, 2024):

I have been using the 6.1 kernel for three months and have not encountered similar issues. Also, since the guy in the thread I linked to solved the problem on his OrangePi 5 Plus, I think it's not an issue with either the GPU driver or ffmpeg.

The video source file is large in size and has a high bit rate. Consider this a network connection speed or drive speed issue.

@nyanmisaka commented on GitHub (Feb 22, 2024): I have been using the 6.1 kernel for three months and have not encountered similar issues. Also, since the guy in the thread I linked to solved the problem on his OrangePi 5 Plus, I think it's not an issue with either the GPU driver or ffmpeg. The video source file is large in size and has a high bit rate. Consider this a network connection speed or drive speed issue.
Author
Owner

@FirstMelody commented on GitHub (Feb 22, 2024):

I wrongly clicked the close issue button.
The video file I used is a movie I watched with transcoding before. And it was fine. Also, disabling tone-mapping would make the transcode speed back to normal (90fps ish). I am so confused right now. Maybe I need a clean install?

@FirstMelody commented on GitHub (Feb 22, 2024): I wrongly clicked the close issue button. The video file I used is a movie I watched with transcoding before. And it was fine. Also, disabling tone-mapping would make the transcode speed back to normal (90fps ish). I am so confused right now. Maybe I need a clean install?
Author
Owner

@nyanmisaka commented on GitHub (Feb 22, 2024):

I got ~55fps on 4k to 4k with tone-mapping and PGS burn-in enabled.
811A1B73-7D68-41E2-A7DA-33A1738A7F1E

I use my own kernel configuration. Maybe orangepi has wrong kernel defconfig enabled for 6.1. You can compare both. https://github.com/nyanmisaka/linux-rockchip/commits/rk-6.1-dev2

@nyanmisaka commented on GitHub (Feb 22, 2024): I got ~55fps on 4k to 4k with tone-mapping and PGS burn-in enabled. ![811A1B73-7D68-41E2-A7DA-33A1738A7F1E](https://github.com/nyanmisaka/ffmpeg-rockchip/assets/14953024/3de66afe-75b2-475c-a064-2465c145af31) I use my own kernel configuration. Maybe orangepi has wrong kernel defconfig enabled for 6.1. You can compare both. https://github.com/nyanmisaka/linux-rockchip/commits/rk-6.1-dev2
Author
Owner

@nyanmisaka commented on GitHub (Mar 11, 2024):

Any update? If not I will have to close this as it's not an issue of this project.

@nyanmisaka commented on GitHub (Mar 11, 2024): Any update? If not I will have to close this as it's not an issue of this project.
Author
Owner

@FirstMelody commented on GitHub (Mar 11, 2024):

Sorry for the delay. I have been so busy recently. And I've re-flashed the orangepi back to 5.10 kernel and everything is back to normal. And I didn't see any updates of the kernel from orangepi team. And armbian is also not releasing their kernel. So I guess this issue should be closed. Anyway, thanks for your contribution!

@FirstMelody commented on GitHub (Mar 11, 2024): Sorry for the delay. I have been so busy recently. And I've re-flashed the orangepi back to 5.10 kernel and everything is back to normal. And I didn't see any updates of the kernel from orangepi team. And armbian is also not releasing their kernel. So I guess this issue should be closed. Anyway, thanks for your contribution!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#17
No description provided.