The NetBSD Project

CVS log for src/sys/dev/pci/pci_resource.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.3.2.1 / (download) - annotate - [select for diffs], Wed Nov 29 12:34:46 2023 UTC (4 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Changes since 1.3: +42 -9 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

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.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 12 13:56:20 2023 UTC (5 months ago) by jmcneill
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +42 -9 lines
Diff to previous 1.3 (colored)

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.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 15 20:11:44 2022 UTC (17 months, 4 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC1
Branch point for: netbsd-10
Changes since 1.2: +7 -7 lines
Diff to previous 1.2 (colored)

pci_resource(9): Fix whitespace.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 15 20:11:00 2022 UTC (17 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.1: +5 -10 lines
Diff to previous 1.1 (colored)

pci_resource(9): vmem_create and vmem_add never fail with VM_SLEEP.

Prune dead error branches.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 14 22:10:15 2022 UTC (17 months, 4 weeks ago) by jmcneill
Branch: MAIN

Add a PCI resource manager and use it on Arm ACPI platforms.

The Arm ACPI code relied on PCI_NETBSD_CONFIGURE to configure devices that
were not enabled by system firmware. This is not safe to do unless the
firmware explicitly permits it using a device specific method defined in
the PCI firmware spec.

Introduce a new PCI resource manager that discovers what has already been
configured by firmware and allocates from the remaining space. This will
ensure that devices setup by firmware are untouched and only will program
BARs of devices that are not enabled at boot time.

The current implementation assumes that the parent PCI-PCI bridge's
are already configured. A worthwhile improvement in the future would be
to support programming windows for bridges that are not fully configured.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>