Skip to content

vc4_bo_create -> Failed to allocate from CMA. #1247

@DeviceIoControl

Description

@DeviceIoControl

Bug Description:
Usage of any type of Hardware accelerated application (VLC media player, Kodi, Google Chrome, etc.) for an extended period of time (between 30 mins to 1 hour), causes CMA to fail to allocate memory (out of memory) for the vc4-fkms-v3d driver. This causes all of the Hardware accelerated applications running at that point in time to freeze (turn black) or produce serious visual artifacting.

The only fix that I have found, is to disable the vc4-fkms-v3d driver in the /boot/config.txt file (or by switching the GL Driver to "Legacy" mode in raspi-config), but unfortunately, this results in the loss of Hardware acceleration.

To reproduce:
This typically occurs when watching a video for more than 30 mins in the VLC media player application. Eventually the video will freeze and any attempt to interact with the application will cause the application to freeze or produce visual artifacting.

Expected behaviour:
Expected to use Hardware accelerated applications for an extended period of time, without causing applications freezing or produce visual artifacting.

Actual behaviour:
See "Bug Description" section above.

System:
Device Model -> Raspberry Pi 4 Model B (4GB)
OS -> Raspbian GNU/Linux 10 (buster) armv7l
Firmware version -> a51b488198a8c0360b93351682e7432d89d70411
Kernel version -> 4.19.66-v7l+

Logs:
[3912.566190] [drm:vc4_bo_create [vc4]] ERROR Failed to allocate from CMA:
[3912.573209] [drm] kernel: 5120kb BOs (1)
[3912.579505] [drm] V3D: 15116kb BOs (15)
[3912.585862] [drm] V3D shader: 120kb BOs (29)
[3912.592241] [drm] dumb: 48kb BOs (3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions