Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_gart_64.c Create Date:2022-07-28 08:52:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_iommu_size

Proto:static __init unsigned long check_iommu_size(unsigned long aper, u64 aper_size)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longaper
u64aper_size
503  If Not size of remapping area bytes Then
504  size of remapping area bytes = aper_size
505  If Not no_agp Then size of remapping area bytes /= 2
509  a = aper + size of remapping area bytes
510  size of remapping area bytes -= und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(a, PMD_PAGE_SIZE) - a
512  If size of remapping area bytes < 64 * 1024 * 1024 Then
513  pr_warn("PCI-DMA: Warning: Small IOMMU %luMB. Consider increasing the AGP aperture in BIOS\n", size of remapping area bytes >> 20)
518  Return size of remapping area bytes
Caller
NameDescribe
gart_iommu_init