You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "wengzhe (via GitHub)" <gi...@apache.org> on 2026/01/08 07:59:44 UTC

[PR] drivers/virtio-gpu: Avoid calling free in IRQ [nuttx]

wengzhe opened a new pull request, #17802:
URL: https://github.com/apache/nuttx/pull/17802

   ## Summary
   
   Calling `virtio_free_buf` or `kmm_free` inside IRQ may lead to dead lock inside `mm_free`, so we use a free list to store the buffer and reuse it next time.  Fortunately, NuttX only uses one async buffer at same time, so we don't need to consider how to free the buffer because we won't have too many in the free list.
   
   ## Impact
   
   Remove free in IRQ to avoid dead lock inside `virtio-gpu`.
   Limited inside `virtio-gpu`, which normally affects graphics on QEMU.
   
   ## Testing
   
   The `lvgldemo` on QEMU works normally (with `virtio-gpu-device`), without any mem leak.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] drivers/virtio-gpu: Avoid calling free in IRQ [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #17802:
URL: https://github.com/apache/nuttx/pull/17802


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] drivers/virtio-gpu: Avoid calling free in IRQ [nuttx]

Posted by "wengzhe (via GitHub)" <gi...@apache.org>.
wengzhe commented on PR #17802:
URL: https://github.com/apache/nuttx/pull/17802#issuecomment-3723040445

   The CI failed on "Download Source Artifact" ... Let me try to rebase on top of `master` branch and retrigger it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org