• K
    PCI: Extending pci=resource_alignment to specify device/vendor IDs · 644a544f
    Koehrer Mathias (ETAS/ESW5) 提交于
    Some uio-based PCI drivers, e.g., uio_cif do not work if the assigned PCI
    memory resources are not page aligned.
    
    By using the kernel option "pci=resource_alignment" it is possible to force
    single PCI boards to use page alignment for their memory resources.
    However, this is fairly cumbersome if several of these boards are in use
    as the specification of the cards has to be done via PCI bus/slot/function
    number which might change, e.g., by adding another board.
    
    Extend the kernel option "pci=resource_alignment" to allow specification of
    relevant devices via PCI device/vendor (and subdevice/subvendor) IDs.  The
    specification of the devices via device/vendor is indicated by a leading
    string "pci:" as argument to "pci=resource_alignment".  The format of the
    specification is pci:<vendor>:<device>[:<subvendor>:<subdevice>]
    Signed-off-by: NMathias Koehrer <mathias.koehrer@etas.com>
    Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
    644a544f
pci.c 130.6 KB