head 1.13; access; symbols netbsd-11-0-RC4:1.13 netbsd-11-0-RC3:1.13 netbsd-11-0-RC2:1.13 netbsd-11-0-RC1:1.13 perseant-exfatfs-base-20250801:1.13 netbsd-11:1.13.0.14 netbsd-11-base:1.13 netbsd-10-1-RELEASE:1.13 perseant-exfatfs-base-20240630:1.13 perseant-exfatfs:1.13.0.12 perseant-exfatfs-base:1.13 netbsd-9-4-RELEASE:1.6.6.2 netbsd-10-0-RELEASE:1.13 netbsd-10-0-RC6:1.13 netbsd-10-0-RC5:1.13 netbsd-10-0-RC4:1.13 netbsd-10-0-RC3:1.13 netbsd-10-0-RC2:1.13 thorpej-ifq:1.13.0.10 thorpej-ifq-base:1.13 thorpej-altq-separation:1.13.0.8 thorpej-altq-separation-base:1.13 netbsd-10-0-RC1:1.13 netbsd-10:1.13.0.6 netbsd-10-base:1.13 bouyer-sunxi-drm:1.13.0.4 bouyer-sunxi-drm-base:1.13 netbsd-9-3-RELEASE:1.6.6.2 thorpej-i2c-spi-conf2:1.13.0.2 thorpej-i2c-spi-conf2-base:1.13 thorpej-futex2:1.12.0.12 thorpej-futex2-base:1.12 thorpej-cfargs2:1.12.0.10 thorpej-cfargs2-base:1.12 cjep_sun2x-base1:1.12 cjep_sun2x:1.12.0.8 cjep_sun2x-base:1.12 cjep_staticlib_x-base1:1.12 netbsd-9-2-RELEASE:1.6.6.2 cjep_staticlib_x:1.12.0.6 cjep_staticlib_x-base:1.12 thorpej-i2c-spi-conf:1.12.0.4 thorpej-i2c-spi-conf-base:1.12 thorpej-cfargs:1.12.0.2 thorpej-cfargs-base:1.12 thorpej-futex:1.11.0.2 thorpej-futex-base:1.12 netbsd-9-1-RELEASE:1.6.6.2 bouyer-xenpvh-base2:1.10 phil-wifi-20200421:1.10 bouyer-xenpvh-base1:1.10 phil-wifi-20200411:1.10 bouyer-xenpvh:1.10.0.4 bouyer-xenpvh-base:1.10 is-mlppp:1.10.0.2 is-mlppp-base:1.10 phil-wifi-20200406:1.10 ad-namecache-base3:1.10 netbsd-9-0-RELEASE:1.6.6.2 netbsd-9-0-RC2:1.6.6.2 ad-namecache-base2:1.9 ad-namecache-base1:1.9 ad-namecache:1.8.0.2 ad-namecache-base:1.8 netbsd-9-0-RC1:1.6.6.2 phil-wifi-20191119:1.8 netbsd-9:1.6.0.6 netbsd-9-base:1.6 phil-wifi:1.6.0.4 phil-wifi-20190609:1.6 isaki-audio2:1.6.0.2 isaki-audio2-base:1.6 pgoyette-compat-merge-20190127:1.2.2.4 pgoyette-compat-20190127:1.6 pgoyette-compat-20190118:1.6 pgoyette-compat-1226:1.6 pgoyette-compat-1126:1.5 pgoyette-compat:1.2.0.2 pgoyette-compat-1020:1.2; locks; strict; comment @# @; 1.13 date 2021.08.07.21.27.53; author jmcneill; state Exp; branches; next 1.12; commitid 4NyxKwu5Lomvl54D; 1.12 date 2020.12.07.10.57.41; author jmcneill; state Exp; branches; next 1.11; commitid OPplaK8ri0iuFNyC; 1.11 date 2020.10.10.15.25.31; author jmcneill; state Exp; branches 1.11.2.1; next 1.10; commitid nPFuXAaN8f6C0nrC; 1.10 date 2020.02.01.13.26.43; author jmcneill; state Exp; branches; next 1.9; commitid t5qbRhkobQewsYUB; 1.9 date 2020.01.17.17.06.33; author jmcneill; state Exp; branches; next 1.8; commitid 4aQC9ihagTbR94TB; 1.8 date 2019.10.14.11.00.13; author jmcneill; state Exp; branches 1.8.2.1; next 1.7; commitid 7ux28a1ySXfPaPGB; 1.7 date 2019.09.22.18.31.59; author jmcneill; state Exp; branches; next 1.6; commitid xazqfB6cTTtgo2EB; 1.6 date 2018.12.08.15.04.40; author jmcneill; state Exp; branches 1.6.4.1 1.6.6.1; next 1.5; commitid EU5eQn091JMLu03B; 1.5 date 2018.11.12.12.56.05; author jmcneill; state Exp; branches; next 1.4; commitid DE4CTxEDwLRSCEZA; 1.4 date 2018.10.24.11.01.47; author jmcneill; state Exp; branches; next 1.3; commitid DB2BskzbyMSvBcXA; 1.3 date 2018.10.21.21.18.41; author jmcneill; state Exp; branches; next 1.2; commitid djKGBUTLVOPb7SWA; 1.2 date 2018.10.15.11.35.03; author jmcneill; state Exp; branches 1.2.2.1; next 1.1; commitid tpEUyre0YrLP43WA; 1.1 date 2018.10.12.22.20.04; author jmcneill; state Exp; branches; next ; commitid qA4Fu2799y72KIVA; 1.11.2.1 date 2020.12.14.14.37.47; author thorpej; state Exp; branches; next ; commitid S4HwP6n7zzL3FIzC; 1.8.2.1 date 2020.01.17.21.47.23; author ad; state Exp; branches; next 1.8.2.2; commitid T9pwLWote7xbI5TB; 1.8.2.2 date 2020.02.29.20.18.17; author ad; state Exp; branches; next ; commitid 3HPOJ2wqM6gUPBYB; 1.6.4.1 date 2018.12.08.15.04.40; author christos; state dead; branches; next 1.6.4.2; commitid jtc8rnCzWiEEHGqB; 1.6.4.2 date 2019.06.10.22.05.50; author christos; state Exp; branches; next 1.6.4.3; commitid jtc8rnCzWiEEHGqB; 1.6.4.3 date 2020.04.08.14.07.27; author martin; state Exp; branches; next 1.6.4.4; commitid Qli2aW9E74UFuA3C; 1.6.4.4 date 2020.04.13.08.03.32; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.6.6.1 date 2019.09.23.07.06.31; author martin; state Exp; branches; next 1.6.6.2; commitid frJCVypKIhOgz6EB; 1.6.6.2 date 2019.10.15.19.40.34; author martin; state Exp; branches; next ; commitid fNTKiSnOGY0720HB; 1.2.2.1 date 2018.10.15.11.35.03; author pgoyette; state dead; branches; next 1.2.2.2; commitid mTSoqZEZ4arHnFWA; 1.2.2.2 date 2018.10.20.06.58.24; author pgoyette; state Exp; branches; next 1.2.2.3; commitid mTSoqZEZ4arHnFWA; 1.2.2.3 date 2018.11.26.01.52.17; author pgoyette; state Exp; branches; next 1.2.2.4; commitid Zj4q5SspGdKXto1B; 1.2.2.4 date 2018.12.26.14.01.32; author pgoyette; state Exp; branches; next ; commitid xUhK8IAeBM1azj5B; desc @@ 1.13 log @arm: acpi: Add support for SMCCC based PCI config access. @ text @# $NetBSD: files.acpi,v 1.12 2020/12/07 10:57:41 jmcneill Exp $ # # Configuration info for ACPI compliant ARM boards. # # device fdc { drive = -1 } # XXX include "dev/apm/files.apm" # XXX defflag opt_pcifixup.h ACPI_PCI_FIXUP include "dev/acpi/files.acpi" file arch/arm/acpi/acpi_iort.c acpi file arch/arm/acpi/acpi_machdep.c acpi file arch/arm/acpi/acpi_pci_machdep.c acpi & pci file arch/arm/acpi/acpi_pci_graviton.c acpi & pci file arch/arm/acpi/acpi_pci_layerscape_gen4.c acpi & pci file arch/arm/acpi/acpi_pci_n1sdp.c acpi & pci file arch/arm/acpi/acpi_pci_smccc.c acpi & pci & pci_smccc file arch/arm/acpi/acpi_platform.c acpi file arch/arm/acpi/acpi_table.c acpi attach cpu at acpimadtbus with cpu_acpi file arch/arm/acpi/cpu_acpi.c cpu_acpi attach gic at acpimadtbus with gic_acpi file arch/arm/acpi/gic_acpi.c gic_acpi attach gicvthree at acpimadtbus with gicv3_acpi file arch/arm/acpi/gicv3_acpi.c gicv3_acpi file arch/arm/acpi/gic_v2m_acpi.c (gic_acpi | gicv3_acpi) & pci attach gtmr at acpisdtbus with gtmr_acpi file arch/arm/acpi/gtmr_acpi.c gtmr_acpi device sbsawdt: sysmon_wdog attach sbsawdt at acpigtdtbus with sbsawdt_acpi file arch/arm/acpi/sbsawdt_acpi.c sbsawdt_acpi attach plcom at acpinodebus with plcom_acpi file arch/arm/acpi/plcom_acpi.c plcom_acpi device acpicpu: acpi attach acpicpu at acpinodebus file dev/acpi/acpi_cpu.c acpicpu file dev/acpi/acpi_cpu_cstate.c acpicpu file dev/acpi/acpi_cpu_pstate.c acpicpu file dev/acpi/acpi_cpu_tstate.c acpicpu file arch/arm/acpi/acpi_cpu_md.c acpicpu device acpipchb: pcibus attach acpipchb at acpinodebus file arch/arm/acpi/acpipchb.c acpipchb @ 1.12 log @acpicpu: Add support for ACPI P-states and T-states on Arm. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.11 2020/10/10 15:25:31 jmcneill Exp $ d19 1 @ 1.11 log @Support early FB console attachment when booting with a devicetree (non-ACPI mode). Inform the pciconf code about the framebuffer to prevent pciconf from changing resources out from under us when framebuffer memory is in VRAM. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.10 2020/02/01 13:26:43 jmcneill Exp $ d43 8 @ 1.11.2.1 log @Sync w/ HEAD. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.12 2020/12/07 10:57:41 jmcneill Exp $ a42 8 device acpicpu: acpi attach acpicpu at acpinodebus file dev/acpi/acpi_cpu.c acpicpu file dev/acpi/acpi_cpu_cstate.c acpicpu file dev/acpi/acpi_cpu_pstate.c acpicpu file dev/acpi/acpi_cpu_tstate.c acpicpu file arch/arm/acpi/acpi_cpu_md.c acpicpu @ 1.10 log @Add support for NXP Layerscape PCIe Gen4 (not ECAM compliant) @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.9 2020/01/17 17:06:33 jmcneill Exp $ a19 1 file arch/arm/acpi/acpi_simplefb.c acpi & wsdisplay & genfb @ 1.9 log @Add support for Arm N1 SDP PCIe host controller. The N1 SDP has a few bugs that we need to work around: - PCIe root port config space lives in a non-standard location. - Access to PCIe config space of devices that do not exist results in an sync SError. Firmware creates a "known devices" table at a fixed physical address that we use to filter PCI conf access to only known devices. This change splits the Arm ACPI PCI quirks into separate files for each host controller, and allows per-segment quirks to be applied. These changes exposed some bugs in the MI ACPI layer related to multi-segment support. The MI ACPI PCI code was using a shared PCI chipset tag to access devices, and these accesses can happen before our PCI host bridge drivers are attached! The global chipset tag is now gone, and an MD callback can provide a custom tag on a per-segment basis. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.8 2019/10/14 11:00:13 jmcneill Exp $ d17 1 @ 1.8 log @Add support for Amazon's Graviton MSI controller. Graviton has a GICv3 with a modified GICv2m (!) for MSIs. Instead of sending messages to a fixed address with the SPI as data, the Graviton's GICv2m uses a different address for each vector with "don't care" as data. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.7 2019/09/22 18:31:59 jmcneill Exp $ d16 2 @ 1.8.2.1 log @Sync with head. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.9 2020/01/17 17:06:33 jmcneill Exp $ a15 2 file arch/arm/acpi/acpi_pci_graviton.c acpi & pci file arch/arm/acpi/acpi_pci_n1sdp.c acpi & pci @ 1.8.2.2 log @Sync with head. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.8.2.1 2020/01/17 21:47:23 ad Exp $ a16 1 file arch/arm/acpi/acpi_pci_layerscape_gen4.c acpi & pci @ 1.7 log @Use vcons for simplefb preattach to speed up early console messages. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.6 2018/12/08 15:04:40 jmcneill Exp $ d29 2 @ 1.6 log @Add support for decoding PCI ID mappings using IO remapping tables (IORT). @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.5 2018/11/12 12:56:05 jmcneill Exp $ d17 1 @ 1.6.6.1 log @Pull up following revision(s) (requested by jmcneill in ticket #231): sys/arch/arm/acpi/acpi_platform.c: revision 1.18 sys/arch/arm/acpi/files.acpi: revision 1.7 sys/arch/arm/acpi/acpi_simplefb.c: revision 1.1 sys/arch/arm/acpi/acpi_simplefb.h: revision 1.1 Use vcons for simplefb preattach to speed up early console messages. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.6 2018/12/08 15:04:40 jmcneill Exp $ a16 1 file arch/arm/acpi/acpi_simplefb.c acpi & wsdisplay & genfb @ 1.6.6.2 log @Pull up following revision(s) (requested by jmcneill in ticket #334): sys/arch/arm/cortex/gic_v2m.c: revision 1.7 sys/arch/arm/acpi/gicv3_acpi.c: revision 1.5 sys/arch/arm/acpi/files.acpi: revision 1.8 sys/arch/arm/acpi/gic_acpi.c: revision 1.4 sys/arch/arm/cortex/files.cortex: revision 1.13 sys/arch/arm/acpi/gic_v2m_acpi.c: revision 1.1 sys/arch/arm/acpi/gic_v2m_acpi.h: revision 1.1 sys/arch/arm/cortex/gic_v2m.h: revision 1.2 Add support for Amazon's Graviton MSI controller. Graviton has a GICv3 with a modified GICv2m (!) for MSIs. Instead of sending messages to a fixed address with the SPI as data, the Graviton's GICv2m uses a different address for each vector with "don't care" as data. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.6.6.1 2019/09/23 07:06:31 martin Exp $ a28 2 file arch/arm/acpi/gic_v2m_acpi.c (gic_acpi | gicv3_acpi) & pci @ 1.6.4.1 log @file files.acpi was added on branch phil-wifi on 2019-06-10 22:05:50 +0000 @ text @d1 40 @ 1.6.4.2 log @Sync with HEAD @ text @a0 40 # $NetBSD: files.acpi,v 1.6 2018/12/08 15:04:40 jmcneill Exp $ # # Configuration info for ACPI compliant ARM boards. # # device fdc { drive = -1 } # XXX include "dev/apm/files.apm" # XXX defflag opt_pcifixup.h ACPI_PCI_FIXUP include "dev/acpi/files.acpi" file arch/arm/acpi/acpi_iort.c acpi file arch/arm/acpi/acpi_machdep.c acpi file arch/arm/acpi/acpi_pci_machdep.c acpi & pci file arch/arm/acpi/acpi_platform.c acpi file arch/arm/acpi/acpi_table.c acpi attach cpu at acpimadtbus with cpu_acpi file arch/arm/acpi/cpu_acpi.c cpu_acpi attach gic at acpimadtbus with gic_acpi file arch/arm/acpi/gic_acpi.c gic_acpi attach gicvthree at acpimadtbus with gicv3_acpi file arch/arm/acpi/gicv3_acpi.c gicv3_acpi attach gtmr at acpisdtbus with gtmr_acpi file arch/arm/acpi/gtmr_acpi.c gtmr_acpi device sbsawdt: sysmon_wdog attach sbsawdt at acpigtdtbus with sbsawdt_acpi file arch/arm/acpi/sbsawdt_acpi.c sbsawdt_acpi attach plcom at acpinodebus with plcom_acpi file arch/arm/acpi/plcom_acpi.c plcom_acpi device acpipchb: pcibus attach acpipchb at acpinodebus file arch/arm/acpi/acpipchb.c acpipchb @ 1.6.4.3 log @Merge changes from current as of 20200406 @ text @d1 1 a1 1 # $NetBSD$ a15 3 file arch/arm/acpi/acpi_pci_graviton.c acpi & pci file arch/arm/acpi/acpi_pci_layerscape_gen4.c acpi & pci file arch/arm/acpi/acpi_pci_n1sdp.c acpi & pci @ 1.6.4.4 log @Mostly merge changes from HEAD upto 20200411 @ text @a19 1 file arch/arm/acpi/acpi_simplefb.c acpi & wsdisplay & genfb a30 2 file arch/arm/acpi/gic_v2m_acpi.c (gic_acpi | gicv3_acpi) & pci @ 1.5 log @Support building kernels with ACPI and no PCI. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.4 2018/10/24 11:01:47 jmcneill Exp $ d13 1 @ 1.4 log @Add driver for ARM Server Base System Architecture (SBSA)-compliant generic watchdog timers. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.3 2018/10/21 21:18:41 jmcneill Exp $ d14 1 a14 1 file arch/arm/acpi/acpi_pci_machdep.c acpi @ 1.3 log @Add GICv3 ACPI attachment glue. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.2 2018/10/15 11:35:03 jmcneill Exp $ d30 4 @ 1.2 log @Add ARM ACPI PCI support. @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.1 2018/10/12 22:20:04 jmcneill Exp $ d24 3 @ 1.2.2.1 log @file files.acpi was added on branch pgoyette-compat on 2018-10-20 06:58:24 +0000 @ text @d1 32 @ 1.2.2.2 log @Sync with head @ text @a0 32 # $NetBSD: files.acpi,v 1.2 2018/10/15 11:35:03 jmcneill Exp $ # # Configuration info for ACPI compliant ARM boards. # # device fdc { drive = -1 } # XXX include "dev/apm/files.apm" # XXX defflag opt_pcifixup.h ACPI_PCI_FIXUP include "dev/acpi/files.acpi" file arch/arm/acpi/acpi_machdep.c acpi file arch/arm/acpi/acpi_pci_machdep.c acpi file arch/arm/acpi/acpi_platform.c acpi file arch/arm/acpi/acpi_table.c acpi attach cpu at acpimadtbus with cpu_acpi file arch/arm/acpi/cpu_acpi.c cpu_acpi attach gic at acpimadtbus with gic_acpi file arch/arm/acpi/gic_acpi.c gic_acpi attach gtmr at acpisdtbus with gtmr_acpi file arch/arm/acpi/gtmr_acpi.c gtmr_acpi attach plcom at acpinodebus with plcom_acpi file arch/arm/acpi/plcom_acpi.c plcom_acpi device acpipchb: pcibus attach acpipchb at acpinodebus file arch/arm/acpi/acpipchb.c acpipchb @ 1.2.2.3 log @Sync with HEAD, resolve a couple of conflicts @ text @d1 1 a1 1 # $NetBSD: files.acpi,v 1.5 2018/11/12 12:56:05 jmcneill Exp $ d14 1 a14 1 file arch/arm/acpi/acpi_pci_machdep.c acpi & pci a23 3 attach gicvthree at acpimadtbus with gicv3_acpi file arch/arm/acpi/gicv3_acpi.c gicv3_acpi a26 4 device sbsawdt: sysmon_wdog attach sbsawdt at acpigtdtbus with sbsawdt_acpi file arch/arm/acpi/sbsawdt_acpi.c sbsawdt_acpi @ 1.2.2.4 log @Sync with HEAD, resolve a few conflicts @ text @d1 1 a1 1 # $NetBSD$ a12 1 file arch/arm/acpi/acpi_iort.c acpi @ 1.1 log @Add ACPI platform glue and basic device drivers (CPU, GIC, Generic Timer, SBSA UART). @ text @d1 1 a1 1 # $NetBSD: files.virt,v 1.1 2018/06/14 10:56:39 jmcneill Exp $ d14 1 d29 4 @