Skip to content

Conversation

@terry0012
Copy link
Contributor

@terry0012 terry0012 commented Jan 5, 2026

Summary

Map the framebuffer memory address to the physical address to resolve the framebuffer issue in qemu with command -device virtio-gpu-pci.

When using the virtio-gpu-pci device, we observed that the virtio-gpu driver does not create the /dev/fb0 node. The reason is that in PCI mode, the framebuffer address needs to be translated to a physical address for proper operation.

Additionally, there is another bug in the current code related to PCI device scanning for the virtio-gpu-pci device. @CV-Bowen will submit a patch to fix it.

Impact

none

Testing

qemu environment

@terry0012 terry0012 requested a review from yf13 as a code owner January 5, 2026 09:52
@github-actions github-actions bot added Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small labels Jan 5, 2026
Copy link
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@terry0012 how did you find this issue? could you please provide the testing before the fix with the error and the testing after the fix?

@terry0012
Copy link
Contributor Author

@terry0012 how did you find this issue? could you please provide the testing before the fix with the error and the testing after the fix?

OK, I'll provide it later.

@terry0012
Copy link
Contributor Author

@terry0012 how did you find this issue? could you please provide the testing before the fix with the error and the testing after the fix?

I have updated the information in the summary section.

@xiaoxiang781216
Copy link
Contributor

@terry0012 please fix:

2372a353b9 Merge 2455d3ebd423042534f2bf3b3bfc25abb24438c7 into 59f200ac4fe6c940dc0eab2155bb3cb566724082
2455d3ebd4 virtio/virtio-gpu: fbmem should transfer to pa
../nuttx/tools/checkpatch.sh -c -u -m -g 59f200ac4fe6c940dc0eab2155bb3cb566724082..HEAD
❌ Missing git commit message
Used config files:
    1: .codespellrc
Some checks failed. For contributing guidelines, see:
  https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md

When using the virtio-gpu-pci device, we need to use physical address

Signed-off-by: Bowen Wang <[email protected]>
@acassis acassis merged commit e340370 into apache:master Jan 6, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants