git: msi/pci: Adjust pci_alloc_msi method interface
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Mon Dec 26 21:45:12 PST 2011
commit 2c3d7ac8b794c14f1a14b7cf04c0c144a1aed6dd
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Tue Dec 27 11:23:03 2011 +0800
msi/pci: Adjust pci_alloc_msi method interface
- The requested number of MSI messages is no longer adjusted in
pci_alloc_msi_method(), instead, caller should adjust it.
- rids of the MSI SYS_RES_IRQ are explicitly returned to caller,
instead of letting caller fill them based on the implied rules.
- MSI messages' target CPU auto-selection.
- Intead of reallocation using reduced number of MSI messages,
we try to allocate the requested amount of MSI messages on
different CPUs, if the desired CPU does not have enough vectors.
- The requested amount of MSI messages must be sane.
Summary of changes:
sys/bus/pci/pci.c | 97 ++++++++++++++++++++--------------
sys/bus/pci/pci_if.m | 3 +-
sys/bus/pci/pci_private.h | 2 +-
sys/bus/pci/pcivar.h | 4 +-
sys/platform/pc64/apic/ioapic_abi.c | 2 +-
5 files changed, 63 insertions(+), 45 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2c3d7ac8b794c14f1a14b7cf04c0c144a1aed6dd
--
DragonFly BSD source repository
More information about the Commits
mailing list