Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\aperture_64.c Create Date:2022-07-28 08:52:58
Last Modify:2020-03-17 10:38:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This code runs before the PCI subsystem is initialized, so justaccess the northbridge directly.

Proto:static unsigned int __init allocate_aperture(void)

Type:unsigned int

Parameter:Nothing

104  If fallback_aper_order > 5 Then fallback_aper_order = 5
106  aper_size = 32 * 1024 * 1024 << fallback_aper_order
114  addr = memblock_find_in_range(Using 512M as goal, in case kexec will load kernel_big* that will do the on-position decompress, and could overlap with* with the gart aperture that is used, GART_MAX_ADDR, aper_size, aper_size)
116  If Not addr Then
117  pr_err("Cannot allocate aperture memory hole [mem %#010lx-%#010lx] (%uKB)\n", addr, addr + aper_size - 1, aper_size >> 10)
119  Return 0
121  memblock_reserve(addr, aper_size)
122  pr_info("Mapping aperture over RAM [mem %#010lx-%#010lx] (%uKB)\n", addr, addr + aper_size - 1, aper_size >> 10)
124  register_nosave_region(addr >> PAGE_SHIFT determines the page size , (addr + aper_size) >> PAGE_SHIFT determines the page size )
127  Return addr
Caller
NameDescribe
gart_iommu_hole_init