Module Name: src
Committed By: jmcneill
Date: Mon Sep 13 23:30:05 UTC 2021
Modified Files:
src/sys/arch/arm/apple: apple_pcie.c
Log Message:
applepcie: Explicitly use posted BS tag for PCI devices.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/apple/apple_pcie.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/apple/apple_pcie.c
diff -u src/sys/arch/arm/apple/apple_pcie.c:1.3 src/sys/arch/arm/apple/apple_pcie.c:1.4
--- src/sys/arch/arm/apple/apple_pcie.c:1.3 Mon Sep 6 14:03:17 2021
+++ src/sys/arch/arm/apple/apple_pcie.c Mon Sep 13 23:30:05 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: apple_pcie.c,v 1.3 2021/09/06 14:03:17 jmcneill Exp $ */
+/* $NetBSD: apple_pcie.c,v 1.4 2021/09/13 23:30:05 jmcneill Exp $ */
/*-
* Copyright (c) 2021 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apple_pcie.c,v 1.3 2021/09/06 14:03:17 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apple_pcie.c,v 1.4 2021/09/13 23:30:05 jmcneill Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -52,6 +52,8 @@ __KERNEL_RCSID(0, "$NetBSD: apple_pcie.c
#define PCIE_MSI_REMAP 0x0128
#define PCIE_MSI_DOORBELL 0x0168
+extern struct bus_space arm_generic_bs_tag;
+
struct apple_pcie_softc {
struct pcihost_softc sc_pcihost;
@@ -110,7 +112,7 @@ apple_pcie_attach(device_t parent, devic
* Create a new bus tag for PCIe devices that does not inherit the
* nonposted MMIO flag from the host controller.
*/
- sc->sc_pci_bst = fdtbus_bus_tag_create(phandle, 0);
+ sc->sc_pci_bst = &arm_generic_bs_tag;
sc->sc_phandle = phandle;
error = bus_space_map(faa->faa_bst, cs_addr, cs_size, 0, &sc->sc_bsh);
if (error) {