Lines Matching +full:pci +full:- +full:iommu

1 // SPDX-License-Identifier: GPL-2.0
23 #include <linux/pci.h>
28 #include <asm/iommu.h>
30 #include <asm/pci-direct.h>
38 * that will do the on-position decompress, and could overlap with
46 * So don't use 512M below as gart iommu, leave the space for kernel
104 /* This code runs before the PCI subsystem is initialized, so just
121 * make the IOMMU useless. in allocate_aperture()
126 pr_err("Cannot allocate aperture memory hole [mem %#010lx-%#010lx] (%uKB)\n", in allocate_aperture()
127 addr, addr + aper_size - 1, aper_size >> 10); in allocate_aperture()
130 pr_info("Mapping aperture over RAM [mem %#010lx-%#010lx] (%uKB)\n", in allocate_aperture()
131 addr, addr + aper_size - 1, aper_size >> 10); in allocate_aperture()
139 /* Find a PCI capability */
175 pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); in read_agp()
178 pr_err("pci 0000:%02x:%02x.%d: APSIZE unreadable\n", in read_agp()
191 *order = 7 - nbits; in read_agp()
197 aper = (aper_low & ~((1<<22)-1)) | ((u64)aper_hi << 32); in read_agp()
203 pr_info("pci 0000:%02x:%02x.%d: AGP aperture [bus addr %#010Lx-%#010Lx] (old size %uMB)\n", in read_agp()
204 bus, slot, func, aper, aper + (32ULL << (old_order + 20)) - 1, in read_agp()
207 …pr_info("pci 0000:%02x:%02x.%d: AGP aperture size %uMB (APSIZE %#x) is not right, using settings f… in read_agp()
212 pr_info("pci 0000:%02x:%02x.%d: AGP aperture [bus addr %#010Lx-%#010Lx] (%uMB, APSIZE %#x)\n", in read_agp()
213 bus, slot, func, aper, aper + (32ULL << (*order + 20)) - 1, in read_agp()
226 * Do an PCI bus scan by hand because we're running before the PCI
238 /* Poor man's PCI discovery */ in search_agp_bridge()
287 * - the first still used by the GART initialized in the first kernel.
288 * - (sub-)set of it used as normal RAM by the second kernel.
361 pr_info("e820: reserve [mem %#010Lx-%#010Lx] for GART\n", in early_gart_iommu_check()
362 aper_base, aper_base + aper_size - 1); in early_gart_iommu_check()
431 x86_init.iommu.iommu_init = gart_iommu_init; in gart_iommu_hole_init()
438 * still be enabled if we boot into a crash-kernel here. in gart_iommu_hole_init()
440 * unknown side-effects. in gart_iommu_hole_init()
450 pr_info("Node %d: aperture [bus addr %#010Lx-%#010Lx] (%uMB)\n", in gart_iommu_hole_init()
451 node, aper_base, aper_base + aper_size - 1, in gart_iommu_hole_init()
463 pr_err("you are using iommu with agp, but GART size is less than 64MB\n"); in gart_iommu_hole_init()
509 pr_info("Please enable the IOMMU option in the BIOS setup\n"); in gart_iommu_hole_init()
517 * Could disable AGP and IOMMU here, but it's in gart_iommu_hole_init()