Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the default pkt thread queue size on certain platform #458

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

nyanmisaka
Copy link
Member

Leave DEFAULT_PACKET_THREAD_QUEUE_SIZE untouched since we only care about DEFAULT_FRAME_THREAD_QUEUE_SIZE.

Changes

  • Fix the default pkt thread queue size on certain platform

Issues
Otherwise encoding certain files using RKMPP failed with:

[ 3440.087443] rkvenc2_wait_result:2064: session 00000000140b6729 pending list is empty!
[ 3440.087462] rk_vcodec: mpp_msgs_wait:1612: session 63 wait result ret -5
[ 3440.132356] rk_vcodec: mpp_task_attach_fd:1760: can't import dma-buf 41
[ 3440.132375] rk_vcodec: mpp_translate_reg_address:1816: reg[  9]: 0x00000029 fd 41 failed
[ 3440.132386] rk_vcodec: mpp_task_dump_mem_region:2003: --- dump task 0 mem region ---
[ 3440.132395] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  0]: 0x00000000ff800000, size 4e6000
[ 3440.132406] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  1]: 0x00000000ff800000, size 4e6000
[ 3440.132414] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  2]: 0x00000000ff800000, size 4e6000
[ 3440.132423] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  3]: 0x00000000fac00000, size 334000
[ 3440.132431] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  4]: 0x00000000fac00000, size 334000
[ 3440.132439] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  5]: 0x00000000fe400000, size 334000
[ 3440.132446] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  6]: 0x00000000fe400000, size 334000
[ 3440.132454] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  7]: 0x00000000ff370000, size d000
[ 3440.132462] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  8]: 0x00000000fe340000, size d000
[ 3440.132475] rk_vcodec: mpp_process_task_default:614: alloc_task failed.
[ 3440.464435] rkvenc2_wait_result:2064: session 00000000140b6729 pending list is empty!
[ 3440.464456] rk_vcodec: mpp_msgs_wait:1612: session 63 wait result ret -5

Otherwise encoding certain files using RKMPP failed with:
```
[ 3440.087443] rkvenc2_wait_result:2064: session 00000000140b6729 pending list is empty!
[ 3440.087462] rk_vcodec: mpp_msgs_wait:1612: session 63 wait result ret -5
[ 3440.132356] rk_vcodec: mpp_task_attach_fd:1760: can't import dma-buf 41
[ 3440.132375] rk_vcodec: mpp_translate_reg_address:1816: reg[  9]: 0x00000029 fd 41 failed
[ 3440.132386] rk_vcodec: mpp_task_dump_mem_region:2003: --- dump task 0 mem region ---
[ 3440.132395] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  0]: 0x00000000ff800000, size 4e6000
[ 3440.132406] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  1]: 0x00000000ff800000, size 4e6000
[ 3440.132414] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  2]: 0x00000000ff800000, size 4e6000
[ 3440.132423] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  3]: 0x00000000fac00000, size 334000
[ 3440.132431] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  4]: 0x00000000fac00000, size 334000
[ 3440.132439] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  5]: 0x00000000fe400000, size 334000
[ 3440.132446] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  6]: 0x00000000fe400000, size 334000
[ 3440.132454] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  7]: 0x00000000ff370000, size d000
[ 3440.132462] rk_vcodec: mpp_task_dump_mem_region:2008: reg[  8]: 0x00000000fe340000, size d000
[ 3440.132475] rk_vcodec: mpp_process_task_default:614: alloc_task failed.
[ 3440.464435] rkvenc2_wait_result:2064: session 00000000140b6729 pending list is empty!
[ 3440.464456] rk_vcodec: mpp_msgs_wait:1612: session 63 wait result ret -5
```

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
@nyanmisaka nyanmisaka requested a review from a team September 17, 2024 07:12
@nyanmisaka nyanmisaka merged commit 7c40d89 into jellyfin:jellyfin Sep 17, 2024
26 checks passed
@nyanmisaka nyanmisaka deleted the fix-inter-thread-queue-pkt branch September 17, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants