Source-Changes archive

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

CVS commit: [netbsd-10] src/sys/dev/pci



Module Name:    src
Committed By:   martin
Date:           Wed Nov 29 12:34:46 UTC 2023

Modified Files:
        src/sys/dev/pci [netbsd-10]: pci_resource.c

Log Message:
Pull up following revision(s) (requested by jmcneill in ticket #483):

        sys/dev/pci/pci_resource.c: revision 1.4

pci: Improve resource allocation for non-prefetchable BARs.

When allocating resources for PCI devices, use the following criteria:
  - Prefetchable memory must be allocated from the prefetchable range
    of the parent bridge.
  - For 64-bit MMIO, try the prefetchable range first, and fallback to
    the non-prefetchable range. The idea here is to preserve 32-bit resources
    for 32-bit BARs.
  - For 32-bit MMIO, try the non-prefetchable range first. If that fails,
    make one last attempt at allocating from the prefetchable range, in the
    event that it has resources below 4GB.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.2.1 src/sys/dev/pci/pci_resource.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index