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

vc4 driver crashing while watching videos on kodi #6404

Open
EdiDD opened this issue Oct 7, 2024 · 7 comments
Open

vc4 driver crashing while watching videos on kodi #6404

EdiDD opened this issue Oct 7, 2024 · 7 comments

Comments

@EdiDD
Copy link

EdiDD commented Oct 7, 2024

Describe the bug

While watching videos on kodi 20.5 journal is flooded with errors:
kernel: [drm:validate_tile_binning_config [vc4]] *ERROR* Failed to allocate binner memory: -12
causing problems with watching movies.

Steps to reproduce the behaviour

Watch movies without issues.

Device (s)

Raspberry Pi 3 Mod. B

System

  • raspbian based on debian 12.7
  • kernel 6.6.51+rpt-rpi-v8

Logs

No response

Additional context

config.txt:
dtoverlay=vc4-kms-v3d
gpu_mem=160

@pelwell
Copy link
Contributor

pelwell commented Oct 7, 2024

  1. Is this a recent change in behaviour?
  2. Does increasing or decreasing gpu_mem alter the behaviour?

@EdiDD
Copy link
Author

EdiDD commented Oct 7, 2024

  1. Yes. this is a recent change but i can't tell when (from which kernel ver.) this has started.
  2. Increasing gpu_mem to 256M or decreasing to 120M (so low causes movies to glitches / stuttering) has no effect on vc4 errors .

@popcornmix
Copy link
Collaborator

Are you using the default skin (estuary)?
Are you booting to desktop or console?
If desktop are you running kodi or kodi fullscreen?
If desktop, does it work if you switch to boot to console then run kodi?

@EdiDD
Copy link
Author

EdiDD commented Oct 7, 2024

No desktop - console only. Kodi starts with: kodi -fs --standalone with default skin

@popcornmix
Copy link
Collaborator

In order to reproduce this, it would be useful to have a precise, minimal list of things you do to see the first complaint in dmesg.

Is launching kodi and playing one video enough to provoke? If not, what is needed?
So we are comparing like with like, can you provoke the issue playing a known, public file? (e.g. this)

@EdiDD
Copy link
Author

EdiDD commented Oct 8, 2024

I will try to find some conditions (if any) to provoke this issue but for now this is some example of movie where the problem occurred:

  • Video: h264 (High) (avc1), yuv420p(tv, progressive), 1920x1038 [SAR 1:1 DAR 320:173], 3041 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
  • Audio: aac (LC) (mp4a), 48000 Hz, 5.1, fltp, 341 kb/s (default)
  • With subtitles *.srt - this can be important - when subtitles hang (just displays one line constantly) I know for sure that errors has started flooding

Errors appear after some time not instantly from the beginning of a movie. It can be 1min or 10min after.

@EdiDD
Copy link
Author

EdiDD commented Oct 11, 2024

Can't provoke it. It starts flooding randomly with or without subtitles. Meaningless if double or triple buffer is set in kodi or direct to plane or egl render method is used. Additionally I checked that there are no other problems:

  • no storage read errors (badblocks)
  • no memory problems (memtester)
  • no additional kernel parameters (sysctl)
  • no overheating

Looks like vc4 driver is faulty.

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

No branches or pull requests

3 participants