| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdkfd/ |
| D | kfd_flat_memory.c | 95 * The GPUVM_Base/GPUVM_Limit defines the aperture in the 64b space where we 113 * this case the GPUVM aperture (red) is defined and if a pointer falls in this 114 * aperture, we subtract the GPUVM_Base address and set the ATC bit to zero 148 * “Spare” aperture (APE1) 150 * We use the GPUVM aperture to differentiate ATC vs. GPUVM, but we also use 152 * config tables for setting cache policies. The “spare” (APE1) aperture is 154 * The default aperture isn’t an actual base/limit aperture; it is just the 161 * General Aperture definitions and rules 163 * An aperture register definition consists of a Base, Limit, Mtype, and 164 * usually an ATC bit indicating which translation tables that aperture uses. [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
| D | kfd_flat_memory.c | 95 * The GPUVM_Base/GPUVM_Limit defines the aperture in the 64b space where we 113 * this case the GPUVM aperture (red) is defined and if a pointer falls in this 114 * aperture, we subtract the GPUVM_Base address and set the ATC bit to zero 148 * “Spare” aperture (APE1) 150 * We use the GPUVM aperture to differentiate ATC vs. GPUVM, but we also use 152 * config tables for setting cache policies. The “spare” (APE1) aperture is 154 * The default aperture isn’t an actual base/limit aperture; it is just the 161 * General Aperture definitions and rules 163 * An aperture register definition consists of a Base, Limit, Mtype, and 164 * usually an ATC bit indicating which translation tables that aperture uses. [all …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/ |
| D | aperture_64.c | 5 * Work around broken BIOSes that don't set an aperture, only set the 6 * aperture in the AGP bridge, or set too small aperture. 8 * If all fails map the aperture over some low memory. This is cheaper than 39 * with the gart aperture that is used. 63 * If the first kernel maps the aperture over e820 RAM, the kdump kernel will 107 * Aperture has to be naturally aligned. This means a 2GB aperture in allocate_aperture() 115 pr_err("Cannot allocate aperture memory hole [mem %#010lx-%#010lx] (%uKB)\n", in allocate_aperture() 120 pr_info("Mapping aperture over RAM [mem %#010lx-%#010lx] (%uKB)\n", in allocate_aperture() 193 pr_info("pci 0000:%02x:%02x.%d: AGP aperture [bus addr %#010Lx-%#010Lx] (old size %uMB)\n", in read_agp() 197 …pr_info("pci 0000:%02x:%02x.%d: AGP aperture size %uMB (APSIZE %#x) is not right, using settings f… in read_agp() [all …]
|
| /kernel/linux/linux-4.19/arch/x86/kernel/ |
| D | aperture_64.c | 5 * Work around broken BIOSes that don't set an aperture, only set the 6 * aperture in the AGP bridge, or set too small aperture. 8 * If all fails map the aperture over some low memory. This is cheaper than 39 * with the gart aperture that is used. 63 * If the first kernel maps the aperture over e820 RAM, the kdump kernel will 107 * Aperture has to be naturally aligned. This means a 2GB aperture in allocate_aperture() 115 pr_err("Cannot allocate aperture memory hole [mem %#010lx-%#010lx] (%uKB)\n", in allocate_aperture() 120 pr_info("Mapping aperture over RAM [mem %#010lx-%#010lx] (%uKB)\n", in allocate_aperture() 193 pr_info("pci 0000:%02x:%02x.%d: AGP aperture [bus addr %#010Lx-%#010Lx] (old size %uMB)\n", in read_agp() 197 …pr_info("pci 0000:%02x:%02x.%d: AGP aperture size %uMB (APSIZE %#x) is not right, using settings f… in read_agp() [all …]
|
| /kernel/linux/linux-5.10/drivers/char/agp/ |
| D | nvidia-agp.c | 31 volatile u32 __iomem *aperture; member 115 /* aperture size */ in nvidia_configure() 155 /* map aperture */ in nvidia_configure() 157 nvidia_private.aperture = in nvidia_configure() 160 if (!nvidia_private.aperture) in nvidia_configure() 179 /* unmap aperture */ in nvidia_cleanup() 180 iounmap((void __iomem *) nvidia_private.aperture); in nvidia_cleanup() 182 /* restore previous aperture size */ in nvidia_cleanup() 187 /* restore iorr for previous aperture size */ in nvidia_cleanup() 195 * Aperture sizes <64M still requires a full 64k GART directory, but [all …]
|
| D | intel-agp.c | 123 /* aperture size */ in intel_configure() 130 /* attbase - aperture base */ in intel_configure() 151 /* attbase - aperture base */ in intel_815_configure() 161 /* aperture size */ in intel_815_configure() 212 /* aperture size */ in intel_820_configure() 219 /* attbase - aperture base */ in intel_820_configure() 225 /* global enable aperture access */ in intel_820_configure() 242 /* aperture size */ in intel_840_configure() 249 /* attbase - aperture base */ in intel_840_configure() 270 /* aperture size */ in intel_845_configure() [all …]
|
| D | uninorth-agp.c | 35 static char *aperture = NULL; variable 43 if (aperture) { in uninorth_fetch_size() 44 char *save = aperture; in uninorth_fetch_size() 46 size = memparse(aperture, &aperture) >> 20; in uninorth_fetch_size() 47 aperture = save; in uninorth_fetch_size() 54 dev_err(&agp_bridge->dev->dev, "invalid aperture size, " in uninorth_fetch_size() 57 aperture = NULL; in uninorth_fetch_size() 119 /* aperture size and gatt addr */ in uninorth_configure() 127 * the AGP aperture isn't mapped at bus physical address 0 in uninorth_configure() 495 * Not sure that u3 supports that high aperture sizes but it [all …]
|
| D | amd64-agp.c | 116 * Get the current Aperture size from the x86-64. 243 /* Some basic sanity checks for the aperture. */ 249 /* Request the Aperture. This catches cases when someone else in agp_aperture_valid() 255 !(aperture_resource = request_mem_region(aper, size, "aperture"))) { in agp_aperture_valid() 256 printk(KERN_ERR PFX "Aperture conflicts with PCI mapping.\n"); in agp_aperture_valid() 263 * W*s centric BIOS sometimes only set up the aperture in the AGP 265 * in aperture.c, but when IOMMU is not enabled or we run 267 * Unfortunately it is impossible to fix the aperture here because it's too late 305 dev_info(&agp->dev, "aperture size %u MB is not right, using settings from NB\n", in fix_northbridge() 315 dev_info(&agp->dev, "aperture from AGP @ %Lx size %u MB\n", in fix_northbridge() [all …]
|
| D | alpha-agp.c | 21 dma_addr = vmf->address - vmf->vma->vm_start + agp->aperture.bus_base; in alpha_core_agp_vm_fault() 54 agp_bridge->gart_bus_addr = agp->aperture.bus_base; in alpha_core_agp_configure() 165 * Build the aperture size descriptor in alpha_core_agp_setup() 168 aper_size->size = agp->aperture.size / (1024 * 1024); in alpha_core_agp_setup() 169 aper_size->num_entries = agp->aperture.size / PAGE_SIZE; in alpha_core_agp_setup()
|
| /kernel/linux/linux-4.19/drivers/char/agp/ |
| D | nvidia-agp.c | 31 volatile u32 __iomem *aperture; member 115 /* aperture size */ in nvidia_configure() 155 /* map aperture */ in nvidia_configure() 157 nvidia_private.aperture = in nvidia_configure() 160 if (!nvidia_private.aperture) in nvidia_configure() 179 /* unmap aperture */ in nvidia_cleanup() 180 iounmap((void __iomem *) nvidia_private.aperture); in nvidia_cleanup() 182 /* restore previous aperture size */ in nvidia_cleanup() 187 /* restore iorr for previous aperture size */ in nvidia_cleanup() 195 * Aperture sizes <64M still requires a full 64k GART directory, but [all …]
|
| D | intel-agp.c | 123 /* aperture size */ in intel_configure() 130 /* attbase - aperture base */ in intel_configure() 151 /* attbase - aperture base */ in intel_815_configure() 161 /* aperture size */ in intel_815_configure() 212 /* aperture size */ in intel_820_configure() 219 /* attbase - aperture base */ in intel_820_configure() 225 /* global enable aperture access */ in intel_820_configure() 242 /* aperture size */ in intel_840_configure() 249 /* attbase - aperture base */ in intel_840_configure() 270 /* aperture size */ in intel_845_configure() [all …]
|
| D | uninorth-agp.c | 34 static char *aperture = NULL; variable 42 if (aperture) { in uninorth_fetch_size() 43 char *save = aperture; in uninorth_fetch_size() 45 size = memparse(aperture, &aperture) >> 20; in uninorth_fetch_size() 46 aperture = save; in uninorth_fetch_size() 53 dev_err(&agp_bridge->dev->dev, "invalid aperture size, " in uninorth_fetch_size() 56 aperture = NULL; in uninorth_fetch_size() 118 /* aperture size and gatt addr */ in uninorth_configure() 126 * the AGP aperture isn't mapped at bus physical address 0 in uninorth_configure() 494 * Not sure that u3 supports that high aperture sizes but it [all …]
|
| D | amd64-agp.c | 115 * Get the current Aperture size from the x86-64. 242 /* Some basic sanity checks for the aperture. */ 248 /* Request the Aperture. This catches cases when someone else in agp_aperture_valid() 254 !(aperture_resource = request_mem_region(aper, size, "aperture"))) { in agp_aperture_valid() 255 printk(KERN_ERR PFX "Aperture conflicts with PCI mapping.\n"); in agp_aperture_valid() 262 * W*s centric BIOS sometimes only set up the aperture in the AGP 264 * in aperture.c, but when IOMMU is not enabled or we run 266 * Unfortunately it is impossible to fix the aperture here because it's too late 304 dev_info(&agp->dev, "aperture size %u MB is not right, using settings from NB\n", in fix_northbridge() 314 dev_info(&agp->dev, "aperture from AGP @ %Lx size %u MB\n", in fix_northbridge() [all …]
|
| D | alpha-agp.c | 21 dma_addr = vmf->address - vmf->vma->vm_start + agp->aperture.bus_base; in alpha_core_agp_vm_fault() 54 agp_bridge->gart_bus_addr = agp->aperture.bus_base; in alpha_core_agp_configure() 165 * Build the aperture size descriptor in alpha_core_agp_setup() 168 aper_size->size = agp->aperture.size / (1024 * 1024); in alpha_core_agp_setup() 169 aper_size->num_entries = agp->aperture.size / PAGE_SIZE; in alpha_core_agp_setup()
|
| /kernel/linux/linux-5.10/drivers/misc/ |
| D | pti.c | 67 * an aperture write id. 85 * @mc: The 'aperture'. It's part of a write address that holds 91 * Since each aperture is specified by a unique 93 * to the same aperture at the same time so no lock is required. The 107 u32 __iomem *aperture; in pti_write_to_aperture() local 111 * calculate the aperture offset from the base using the master and in pti_write_to_aperture() 114 aperture = drv_data->pti_ioaddr + (mc->master << 15) in pti_write_to_aperture() 127 iowrite32(ptiword, aperture); in pti_write_to_aperture() 130 aperture += PTI_LASTDWORD_DTS; /* adding DTS signals that is EOM */ in pti_write_to_aperture() 136 iowrite32(ptiword, aperture); in pti_write_to_aperture() [all …]
|
| /kernel/linux/linux-4.19/drivers/misc/ |
| D | pti.c | 75 * an aperture write id. 93 * @mc: The 'aperture'. It's part of a write address that holds 99 * Since each aperture is specified by a unique 101 * to the same aperture at the same time so no lock is required. The 115 u32 __iomem *aperture; in pti_write_to_aperture() local 119 * calculate the aperture offset from the base using the master and in pti_write_to_aperture() 122 aperture = drv_data->pti_ioaddr + (mc->master << 15) in pti_write_to_aperture() 135 iowrite32(ptiword, aperture); in pti_write_to_aperture() 138 aperture += PTI_LASTDWORD_DTS; /* adding DTS signals that is EOM */ in pti_write_to_aperture() 144 iowrite32(ptiword, aperture); in pti_write_to_aperture() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_gart.c | 37 * The GART (Graphics Aperture Remapping Table) is an aperture 39 * the aperture and look like contiguous pages from the GPU's 40 * perspective. A page table maps the pages in the aperture 46 * Radeon hw has a separate AGP aperture that is programmed to 47 * point to the AGP aperture provided by the northbridge and the 48 * requests are passed through to the northbridge aperture. 212 * @offset: offset into the GPU's gart aperture 260 * @offset: offset into the GPU's gart aperture 295 * @offset: offset into the GPU's gart aperture
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_gart.c | 40 * The GART (Graphics Aperture Remapping Table) is an aperture 42 * the aperture and look like contiguous pages from the GPU's 43 * perspective. A page table maps the pages in the aperture 49 * Radeon hw has a separate AGP aperture that is programmed to 50 * point to the AGP aperture provided by the northbridge and the 51 * requests are passed through to the northbridge aperture. 214 * @offset: offset into the GPU's gart aperture 264 * @offset: offset into the GPU's gart aperture 301 * @offset: offset into the GPU's gart aperture
|
| /kernel/linux/linux-5.10/arch/arc/plat-axs10x/ |
| D | axs10x.c | 123 * of which maps to a corresponding 256MB aperture in Target slave memory map. 125 * e.g. ARC cpu AXI Master's aperture 8 (0x8000_0000) is mapped to aperture 0 130 * e.g. aperture 14 (0xE000_0000) of ARC cpu is mapped to aperture 14 137 struct aperture { struct 163 static const struct aperture axc001_memmap[16] = { 186 static const struct aperture axc001_axi_tunnel_memmap[16] = { 209 static const struct aperture axs_mb_memmap[16] = { 229 axs101_set_memmap(void __iomem *base, const struct aperture map[16]) in axs101_set_memmap()
|
| /kernel/linux/linux-5.10/arch/x86/include/asm/ |
| D | gart.h | 17 /* Aperture control register bits. */ 98 printk(KERN_INFO "Aperture beyond 4GB. Ignoring.\n"); in aperture_valid() 102 printk(KERN_INFO "Aperture pointing to e820 RAM. Ignoring.\n"); in aperture_valid() 106 printk(KERN_INFO "Aperture too small (%d MB) than (%d MB)\n", in aperture_valid()
|
| /kernel/linux/linux-4.19/arch/x86/include/asm/ |
| D | gart.h | 17 /* Aperture control register bits. */ 98 printk(KERN_INFO "Aperture beyond 4GB. Ignoring.\n"); in aperture_valid() 102 printk(KERN_INFO "Aperture pointing to e820 RAM. Ignoring.\n"); in aperture_valid() 106 printk(KERN_INFO "Aperture too small (%d MB) than (%d MB)\n", in aperture_valid()
|
| /kernel/linux/linux-4.19/include/drm/ttm/ |
| D | ttm_tt.h | 59 * Bind the backend pages into the aperture in the location 61 * differences between aperture and system page sizes. 71 * able to handle differences between aperture and system page sizes. 101 * This is a structure holding the pages, caching- and aperture binding 128 * This is a structure holding the pages, caching- and aperture binding 184 * Bind the pages of @ttm to an aperture location identified by @bo_mem 261 * Create a TTM backend that uses the indicated AGP bridge as an aperture
|
| /kernel/linux/linux-4.19/arch/arc/plat-axs10x/ |
| D | axs10x.c | 132 * of which maps to a corresponding 256MB aperture in Target slave memory map. 134 * e.g. ARC cpu AXI Master's aperture 8 (0x8000_0000) is mapped to aperture 0 139 * e.g. aperture 14 (0xE000_0000) of ARC cpu is mapped to aperture 14 146 struct aperture { struct 172 static const struct aperture axc001_memmap[16] = { 195 static const struct aperture axc001_axi_tunnel_memmap[16] = { 218 static const struct aperture axs_mb_memmap[16] = { 238 axs101_set_memmap(void __iomem *base, const struct aperture map[16]) in axs101_set_memmap()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
| D | radeon_gart.c | 40 * The GART (Graphics Aperture Remapping Table) is an aperture 42 * the aperture and look like contiguous pages from the GPU's 43 * perspective. A page table maps the pages in the aperture 49 * Radeon hw has a separate AGP aperture that is programmed to 50 * point to the AGP aperture provided by the northbridge and the 51 * requests are passed through to the northbridge aperture. 236 * @offset: offset into the GPU's gart aperture 277 * @offset: offset into the GPU's gart aperture
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/radeon/ |
| D | radeon_gart.c | 37 * The GART (Graphics Aperture Remapping Table) is an aperture 39 * the aperture and look like contiguous pages from the GPU's 40 * perspective. A page table maps the pages in the aperture 46 * Radeon hw has a separate AGP aperture that is programmed to 47 * point to the AGP aperture provided by the northbridge and the 48 * requests are passed through to the northbridge aperture. 235 * @offset: offset into the GPU's gart aperture 276 * @offset: offset into the GPU's gart aperture
|