I met some problems when requesting MSI-X interrupt resource.
I tried both "amd64 FreeBSD 13.1" and "amd64 FreeBSD 13.2".
Related manual:
https://man.freebsd.org/cgi/man.cgi?query=pci_release_msi&sektion=9&manpath=freebsd-release-ports
According to the manual, when requesting MSIX interrupt resource, need to follow the following sequence:
But I observed bus_alloc_resource FAIL (return NULL pointer).
Can advice what is the cause of the problem?
Is something wrong with the document or something wrong with the kernel code?
Thanks in advance.
I tried both "amd64 FreeBSD 13.1" and "amd64 FreeBSD 13.2".
Related manual:
https://man.freebsd.org/cgi/man.cgi?query=pci_release_msi&sektion=9&manpath=freebsd-release-ports
According to the manual, when requesting MSIX interrupt resource, need to follow the following sequence:
- bus_alloc_resource(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE)
- pci_msix_count
- pci_alloc_msix
- bus_setup_intr
But I observed bus_alloc_resource FAIL (return NULL pointer).
Can advice what is the cause of the problem?
Is something wrong with the document or something wrong with the kernel code?
Thanks in advance.