History log of /freebsd/sys/dev/pci/pci_host_generic_fdt.c (Results 1 – 25 of 33)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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 ...


# 18250ec6 06-Dec-2024 John Baldwin <jhb@FreeBSD.org>

Replace calls to bus_generic_attach with bus_attach_children

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47675


Revision tags: release/14.2.0, release/13.4.0
# 5b56413d 25-Jul-2024 Warner Losh <imp@FreeBSD.org>

newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY

Sponsored by: Netflix


Revision tags: release/14.1.0
# b2867001 01-Mar-2024 John Baldwin <jhb@FreeBSD.org>

pci_host_generic: Enumerate resource ranges under bootverbose

Previously ranges were only enumerated for the FDT attachment but not
ACPI. This commit moves the enumeration to the shared attach rout

pci_host_generic: Enumerate resource ranges under bootverbose

Previously ranges were only enumerated for the FDT attachment but not
ACPI. This commit moves the enumeration to the shared attach routine
so it is done for both. While here, don't list empty ranges but do
include the resource type for each range.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D44132

show more ...


Revision tags: release/13.3.0
# 93923685 14-Feb-2024 John Baldwin <jhb@FreeBSD.org>

pci_host_generic_fdt: Remove duplicate DEVMETHOD entries

These are already inherited from generic_pcie_core_driver.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D43888


Revision tags: release/14.0.0
# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


Revision tags: release/13.2.0, release/12.4.0
# ad52fba1 23-May-2022 Andrew Turner <andrew@FreeBSD.org>

Add fdt to name of a fdt specific function

Rename pci_host_generic_attach to pci_host_generic_fdt_attach to be
consistant with the acpi attachment.

Sponsored by: The FreeBSD Foundation


Revision tags: release/13.1.0
# b7672a70 07-May-2022 Ruslan Bukin <br@FreeBSD.org>

Add OFW_IOMMU id type for pci_get_id() so we can ask parent IOMMU
controller to map PCI RID to an IOMMU specifier.

Sponsored by: UKRI
Discussed with: jhb
Differential Revision: https://reviews.freeb

Add OFW_IOMMU id type for pci_get_id() so we can ask parent IOMMU
controller to map PCI RID to an IOMMU specifier.

Sponsored by: UKRI
Discussed with: jhb
Differential Revision: https://reviews.freebsd.org/D35129

show more ...


# 97a41013 07-May-2022 John Baldwin <jhb@FreeBSD.org>

pci: Remove unused devclass arguments to DRIVER_MODULE.


# f6abb39b 09-Apr-2022 John Baldwin <jhb@FreeBSD.org>

pci fdt host drivers: Remove unused variables.


Revision tags: 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 ...


# 18027aa2 31-Aug-2021 Bartlomiej Grzesik <bag@semihalf.com>

pci_host_generic_fdt: set domain number

Set domain number to device unit.

Some boards have multiple RCs handled by different drivers,
this ensures that there are no collisions with ofw_pcib.

Obtai

pci_host_generic_fdt: set domain number

Set domain number to device unit.

Some boards have multiple RCs handled by different drivers,
this ensures that there are no collisions with ofw_pcib.

Obtained from: Semihalf
Reviewed by: wma
Differential revision: https://reviews.freebsd.org/D31508

show more ...


# ea52e815 27-May-2021 Marcin Wojtas <mw@FreeBSD.org>

pci_host_generic_fdt.c: Add support for mapping dts nodes to PCI devices

Some arm64 SoCs have nodes in their fdts that describe devices
connected to the internal PCI bus. One such SoC is Freescale L

pci_host_generic_fdt.c: Add support for mapping dts nodes to PCI devices

Some arm64 SoCs have nodes in their fdts that describe devices
connected to the internal PCI bus. One such SoC is Freescale LS1028A.
It expects the nodes to be mapped to devices enumerated using the standard
PCI method. Mapping is done by reading device and function ids from "reg"
property. Information is dts is used to describe MDIO/PHY connected
to a given interface.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: andrew
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D30180

show more ...


# f0f7b086 27-May-2021 Marcin Wojtas <mw@FreeBSD.org>

Remove ThunderX PCIe FDT quirks from pci_host_generic_fdt.c

ThunderX is the only board known to use them.
Move them to the ThunderX PCIe driver.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Re

Remove ThunderX PCIe FDT quirks from pci_host_generic_fdt.c

ThunderX is the only board known to use them.
Move them to the ThunderX PCIe driver.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: andrew
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D30179

show more ...


Revision tags: release/13.0.0, release/12.2.0
# 04e8183f 02-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

pci: clean up empty lines in .c and .h files


# eed8b80f 06-Jul-2020 Andrew Turner <andrew@FreeBSD.org>

Add a driver for bcm2838 PCI express controller

This adds support for the Broadcom bcm2711 PCI express controller, found
on the Raspberry Pi 4 (aka the bcm2838 SoC). The driver has only been
develop

Add a driver for bcm2838 PCI express controller

This adds support for the Broadcom bcm2711 PCI express controller, found
on the Raspberry Pi 4 (aka the bcm2838 SoC). The driver has only been
developed against the soldered-on VIA XHCI controller and not tested
with other end points.

Submitted by: Robert Crowston <crowston_protonmail.com>
Differential Revision: https://reviews.freebsd.org/D25068

show more ...


# 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
# ed97f6b3 24-Apr-2020 Andrew Turner <andrew@FreeBSD.org>

Remove PCI_IO_WINDOW_OFFSET from the pci host generic fdt attachment.

It doesn't seem to be needed, and breaks booting under bhyve/arm64.

Discussed with: br
MFC after: 2 weeks
Sponsored by: Innovat

Remove PCI_IO_WINDOW_OFFSET from the pci host generic fdt attachment.

It doesn't seem to be needed, and breaks booting under bhyve/arm64.

Discussed with: br
MFC after: 2 weeks
Sponsored by: Innovate UK

show more ...


Revision tags: release/12.1.0, release/11.3.0
# 0269ae4c 06-Jun-2019 Alan Somers <asomers@FreeBSD.org>

MFHead @348740

Sponsored by: The FreeBSD Foundation


# 7b4ec8d2 29-May-2019 Ruslan Bukin <br@FreeBSD.org>

Pass pci_base address instead of physical address to rman_manage_region().

This should had been part of r347930 ("pci: ecam: Correctly parse memory
and IO region").

Sponsored by: DARPA, AFRL


Revision tags: release/12.0.0
# 3d5db455 24-Nov-2018 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r340427 through r340868.


# bd158cdd 19-Nov-2018 Jayachandran C. <jchandra@FreeBSD.org>

pci_host_generic : move activate/release to generic code

Now that the ACPI and FDT implementations for activating and
deactivating resources are the same, we can move it to
pci_host_generic.c. No f

pci_host_generic : move activate/release to generic code

Now that the ACPI and FDT implementations for activating and
deactivating resources are the same, we can move it to
pci_host_generic.c. No functional changes.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17793

show more ...


# 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 ...


# ad785aaf 19-Nov-2018 Jayachandran C. <jchandra@FreeBSD.org>

pci_host_generic: allocate resources against devices

Fix up pci_host_generic.c and pci_host_generic_fdt.c to allocate
resources against devices that requested them. Currently the
allocation happens

pci_host_generic: allocate resources against devices

Fix up pci_host_generic.c and pci_host_generic_fdt.c to allocate
resources against devices that requested them. Currently the
allocation happens against the pcib, which is incorrect.

This is needed for the upcoming changes for fixing up
pci_host_generic_acpi.c

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17656

show more ...


Revision tags: release/11.2.0, release/10.4.0, release/11.1.0
# 86b5c436 16-Mar-2017 Andrew Turner <andrew@FreeBSD.org>

If ofw_bus_msimap fails don't try to use the invalid MSI/MSI-X parent node.

Sponsored by: ABT Systems Ltd


12