WSL icon indicating copy to clipboard operation
WSL copied to clipboard

missing /dev/dma_heap/*

Open 99degree opened this issue 7 months ago • 3 comments

Is your feature request related to a problem? Please describe. running libcamera/cam app fail and get below log, i believe that dmabuf is not only about dma/cma but heap/shared_mem management. Virtual environment dont have dma/cma but it should have heap management api.

[4:02:43.357334657] [42643] INFO Camera camera_manager.cpp:326 libcamera v0.5.1+26-a17c85e6-dirty (2025-06-18T17:30:44GMT) [4:02:43.362243459] [42644] ERROR DmaBufAllocator dma_buf_allocator.cpp:119 Could not open any dma-buf provider Available cameras:

Describe the solution you'd like enable kernel with dmabuf heap

Describe alternatives you've considered Nil.

Additional context Nil.

99degree avatar Jun 18 '25 10:06 99degree

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

github-actions[bot] avatar Jun 18 '25 10:06 github-actions[bot]

/feature

99degree avatar Jun 18 '25 10:06 99degree

Diagnostic information
Found '/feature', adding tag 'feature'

github-actions[bot] avatar Jun 18 '25 10:06 github-actions[bot]

Specifically - https://github.com/microsoft/WSL2-Linux-Kernel/blob/427645e3db3a8896714f22a3d3fe0c3f7b317ad4/arch/x86/configs/config-wsl#L6055 could benefit from being changed to:

-# CONFIG_UDMABUF is not set
+CONFIG_UDMABUF=y

This is indeed a requirement for running the virtual pipeline handler with libcamera.

kbingham avatar Jun 19 '25 11:06 kbingham