#
b3132299 |
| 29-Dec-2024 |
Kyle Evans <kevans@FreeBSD.org> |
pci: avoid accidental clobbering of regs on some fdt platforms
Most pci controllers will just have a single reg for the config space, but others (e.g., on Apple Silicon) may have more following that
pci: avoid accidental clobbering of regs on some fdt platforms
Most pci controllers will just have a single reg for the config space, but others (e.g., on Apple Silicon) may have more following that to describe, e.g., controller port space. Bump the "ranges" rid space up to avoid overriding these other memory resources.
Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D43921
show more ...
|
#
7cafe75c |
| 12-Dec-2024 |
Andrew Turner <andrew@FreeBSD.org> |
pci: Make generic_pcie_read_ivar non static
Allow this to be called from attachments to allow more ivars to be implemented.
Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://rev
pci: Make generic_pcie_read_ivar non static
Allow this to be called from attachments to allow more ivars to be implemented.
Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D48046
show more ...
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0 |
|
#
9dbf5b0e |
| 13-Mar-2024 |
John Baldwin <jhb@FreeBSD.org> |
new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE
The public bus_release_resource() API still accepts both forms, but the internal kobj method no longer passes the arguments.
new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE
The public bus_release_resource() API still accepts both forms, but the internal kobj method no longer passes the arguments. Implementations which need the rid or type now use rman_get_rid() or rman_get_type() to fetch the value from the allocated resource.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44131
show more ...
|
Revision tags: release/13.3.0 |
|
#
d79b6b8e |
| 14-Feb-2024 |
John Baldwin <jhb@FreeBSD.org> |
pci_host_generic: Don't rewrite resource start address for translation
Allocate resources from the parent device for decoded physical address ranges. When child resources suballocated from rman's a
pci_host_generic: Don't rewrite resource start address for translation
Allocate resources from the parent device for decoded physical address ranges. When child resources suballocated from rman's are mapped, translate those mapping requests into a mapping request of the associated physical address range in a bus_map_resource method.
While here, convert generic_pcie_rman to a bus_get_rman method and use bus_generic_rman_* for operations on child resources.
Factor out a generic_pcie_containing_range to share logic between bus_translate_resource and bus_*map_resource.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43894
show more ...
|
#
eac46b9d |
| 14-Feb-2024 |
John Baldwin <jhb@FreeBSD.org> |
pci_host_generic: Remove unused res1 field from softc
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43889
|
Revision tags: release/14.0.0 |
|
#
95ee2897 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
8bc94f25 |
| 24-Apr-2023 |
Andrew Turner <andrew@FreeBSD.org> |
Remove redundant data from pci host generic
The bus tag and handle fields are already stored in the resource. Use this with the bus_read/bus_write helper macros.
Sponsored by: Arm Ltd
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
7029f2c8 |
| 04-Jun-2022 |
Andrew Turner <andrew@FreeBSD.org> |
Allow pci_host_generic attachments to manage registers
To allow for attachments that don't use memory mapped registers add a flag they can set when the base driver shouldn't map them.
Sponsored by:
Allow pci_host_generic attachments to manage registers
To allow for attachments that don't use memory mapped registers add a flag they can set when the base driver shouldn't map them.
Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39227
show more ...
|
#
d843dd0e |
| 23-May-2022 |
Andrew Turner <andrew@FreeBSD.org> |
Clean up in the pci host generic driver
Add clean up on failure and a detach function to the pci host generic driver.
Reviewed by: jhb (earlier version) Sponsored by: The FreeBSD Foundation Differe
Clean up in the pci host generic driver
Add clean up on failure and a detach function to the pci host generic driver.
Reviewed by: jhb (earlier version) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35291
show more ...
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
2de4c7f6 |
| 13-Sep-2021 |
Pawel Anikiel <pan@semihalf.com> |
pci_host_generic: Add Synopsys Designware PCIe controller quirk
Due to the quirky nature of the Synopsys Designware PCIe IP, the type 0 configuration is broadcast and whatever device is plugged into
pci_host_generic: Add Synopsys Designware PCIe controller quirk
Due to the quirky nature of the Synopsys Designware PCIe IP, the type 0 configuration is broadcast and whatever device is plugged into slot, will appear at each 32 device positions of bus0. Mitigate the issue by filtering out duplicated devices on this bus for both DT and ACPI cases.
Reviewed by: mw Sponsored by: Semihalf MFC: after 3 weeks Differential revision: https://reviews.freebsd.org/D31887
show more ...
|
Revision tags: release/13.0.0, release/12.2.0 |
|
#
9a7053ce |
| 17-Jun-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Clean up the pci host generic driver
- Support Prefetchable Memory. - Use the correct rman when allocating memory and ioports. - Translate PCI addresses in bus_alloc_resource to allow physical
Clean up the pci host generic driver
- Support Prefetchable Memory. - Use the correct rman when allocating memory and ioports. - Translate PCI addresses in bus_alloc_resource to allow physical addresses that are different than pci addresses.
Reviewed by: Robert Crowston <crowston_protonmail.com> Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D25121
show more ...
|
Revision tags: release/11.4.0 |
|
#
051669e8 |
| 25-Jan-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r356931 through r357118.
|
#
9a82a56b |
| 24-Jan-2020 |
Ruslan Bukin <br@FreeBSD.org> |
Move the ECAM macroses to the header file.
These will be used by other PCI root complex drivers.
Sponsored by: DARPA, AFRL
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0 |
|
#
3d5db455 |
| 24-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340427 through r340868.
|
#
697c57e5 |
| 19-Nov-2018 |
Jayachandran C. <jchandra@FreeBSD.org> |
pci_host_generic*: basic implementation of bus range
Both ACPI and FDT support bus ranges for pci host bridges. Update pci_host_generic*.[ch] with a default implementation to support this. This will
pci_host_generic*: basic implementation of bus range
Both ACPI and FDT support bus ranges for pci host bridges. Update pci_host_generic*.[ch] with a default implementation to support this. This will be used in the next set of changes for ACPI based host bridge. No functional changes in this commit.
Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D17657
show more ...
|
Revision tags: release/11.2.0, release/10.4.0 |
|
#
1409e715 |
| 21-Aug-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r322398 through r322746.
|
#
3e3648ce |
| 19-Aug-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r322698
|
#
43f0edd4 |
| 19-Aug-2017 |
Andrew Turner <andrew@FreeBSD.org> |
Remove redundant declarations. Newer gcc has a warning for these so will fail when building with -Werror.
Sponsored by: DARPA, AFRL
|
Revision tags: release/11.1.0 |
|
#
0ed76ec8 |
| 24-Nov-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r308870 through r309105.
|
#
f94f8e62 |
| 21-Nov-2016 |
Andrew Turner <andrew@FreeBSD.org> |
To allow for an ACPI attachment to the generic PCIe driver split off the FDT attachment to a new file. A separate ACPI attachment will then be added to allow arm64 servers with ACPI to use it over FD
To allow for an ACPI attachment to the generic PCIe driver split off the FDT attachment to a new file. A separate ACPI attachment will then be added to allow arm64 servers with ACPI to use it over FDT.
This should also help with merging this with the ofwpci driver, with further work needed to remove restrictions this driver places on resource allocation.
Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7319
show more ...
|
Revision tags: release/11.0.1, release/11.0.0 |
|
#
d002f039 |
| 08-Sep-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r305431 through r305622.
|
#
aab9fdaf |
| 06-Sep-2016 |
Wojciech Macek <wma@FreeBSD.org> |
Import missing enum declaration in pci_host_generic header file
Other files including pci_host_generic.h failed to compile due to missing declaration of enum pci_id_type.
Obtained from: Sem
Import missing enum declaration in pci_host_generic header file
Other files including pci_host_generic.h failed to compile due to missing declaration of enum pci_id_type.
Obtained from: Semihalf Submitted by: Michal Stanek <mst@semihalf.com> Sponsored by: Annapurna Labs Reviewed by: wma Differential Revision: https://reviews.freebsd.org/D7561
show more ...
|
#
2760c2ca |
| 31-May-2016 |
Andrew Turner <andrew@FreeBSD.org> |
Mark the ThunderX and generic PCI drivers as cache-coherent when we know this to be the case. This will mean we don't try and handle the cache in bus_dmamap_sync when it is not needed.
Obtained from
Mark the ThunderX and generic PCI drivers as cache-coherent when we know this to be the case. This will mean we don't try and handle the cache in bus_dmamap_sync when it is not needed.
Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6605
show more ...
|
#
1beaee0c |
| 16-May-2016 |
Andrew Turner <andrew@FreeBSD.org> |
Call ofw_bus_msimap to find the parent MSI controller, it may not use the msi-parent property.
Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
|
#
1e43b18c |
| 16-May-2016 |
Andrew Turner <andrew@FreeBSD.org> |
Add a pcib interface for use by interrupt controllers that need to translate the pci rid to a controller ID. The translation could be based on the 'msi-map' OFW property, a similar ACPI option, or ha
Add a pcib interface for use by interrupt controllers that need to translate the pci rid to a controller ID. The translation could be based on the 'msi-map' OFW property, a similar ACPI option, or hard-coded for hardware lacking the above options.
Reviewed by: wma Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
show more ...
|