DragonFly BSD
DragonFly commits List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: msi/pci: Adjust pci_alloc_msi method interface


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Dec 2011 21:45:12 -0800 (PST)

commit 2c3d7ac8b794c14f1a14b7cf04c0c144a1aed6dd
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]