szafonimateusz-mi opened a new pull request, #13391:
URL: https://github.com/apache/nuttx/pull/13391

   ## Summary
   
   -  drivers/pci: add MSI/MSI-X support 
       Add support for MSI and MSI-X in PCI framework
       
   -  arch/x86_64/intel64: add MSI/MSI-X support
       Add MSI and MSI-X support for intel64
   
   -  drivers/pci_qemu_edu: add MSI test
       Add simple MSI test for QEMU PCI EDU device so we can verify if MSI 
works correctly
   
   ## Impact
   
   ## Testing
   Tested with QEMU and PCI EDU device:
   
   ```
   qemu-system-x86_64 -m 2048M -cpu host -enable-kvm -kernel nuttx.elf 
-nographic -serial mon:stdio -device edu -device pci-testdev
   ```
   
   QEMU EDU device MSI test fragment:
   
   ```
   pci_qemu_edu_probe: MSI TEST
   pci_qemu_edu_probe: MSI TEST: Attaching MSI 64 to 0x100917277
   pci_qemu_edu_test_intx: Identification: 0x010000edu
   pci_qemu_edu_test_intx: Triggering interrupt with value 0xdeadbeef
   pci_qemu_edu_interrupt: Received value: 0xdeadbeef
   pci_qemu_edu_test_intx: TEST PASS
   pci_qemu_edu_test_intx: Computing factorial of 5
   pci_qemu_edu_interrupt: Computed factorial: 120
   pci_qemu_edu_test_intx: TEST PASS
   pci_qemu_edu_interrupt: Received value: 0x00000005
   pci_qemu_edu_test_intx: TEST PASS
   pci_qemu_edu_test_dma: Identification: 0x010000edu
   pci_qemu_edu_test_dma: Test block checksum 0xb4908b8a
   EDU: clamping DMA 0x00000001015648d0 to 0x00000000015648d0!
   pci_qemu_edu_interrupt: DMA transfer complete
   pci_qemu_edu_test_dma: DMA transfer to device complete.
   EDU: clamping DMA 0x00000001015648d0 to 0x00000000015648d0!
   pci_qemu_edu_interrupt: DMA transfer complete
   pci_qemu_edu_test_dma: DMA transfer from device complete.
   pci_qemu_edu_test_dma: Received block checksum 0xb4908b8a
   pci_qemu_edu_test_dma: TEST PASS
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to