raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.1k stars 4.97k forks source link

vc4 driver crashing while watching videos on kodi #6404

Open EdiDD opened 1 week ago

EdiDD commented 1 week ago

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

Logs

No response

Additional context

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

pelwell commented 1 week ago
  1. Is this a recent change in behaviour?
  2. Does increasing or decreasing gpu_mem alter the behaviour?
EdiDD commented 1 week ago
  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 commented 1 week ago

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 commented 1 week ago

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

popcornmix commented 1 week ago

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 commented 1 week ago

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:

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

EdiDD commented 1 week ago

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:

Looks like vc4 driver is faulty.