Function report |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-28 08:52:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:gart_iommu_init
Proto:int __init gart_iommu_init(void)
Type:int
Parameter:Nothing
716 | If Not amd_nb_has_feature(AMD_NB_GART) Then Return 0 |
720 | no_agp = 1 |
734 | pr_warn("More than 4GB of memory but GART IOMMU not available.\n") |
735 | pr_warn("falling back to iommu=soft.\n") |
737 | Return 0 |
743 | end_pfn = (aper_base >> PAGE_SHIFT determines the page size ) + (aper_size >> PAGE_SHIFT determines the page size ) |
746 | If Not pfn_range_is_mapped(start_pfn, end_pfn) Then init_memory_mapping(start_pfn << PAGE_SHIFT determines the page size , end_pfn << PAGE_SHIFT determines the page size ) |
749 | pr_info("PCI-DMA: using GART IOMMU.\n") |
755 | If Not Guarded by iommu_bitmap_lock: Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
758 | pr_info("PCI-DMA: Reserving %luMB of IOMMU area in the AGP aperture\n", size of remapping area bytes >> 20) |
775 | set_memory_np((unsignedlong)__va(GART remapping area (physical) ), size of remapping area bytes >> PAGE_SHIFT determines the page size ) |
785 | wbinvd() |
793 | enable_gart_translations() |
801 | scratch = get_zeroed_page(GFP_KERNEL) |
802 | If Not scratch Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
804 | gart_unmapped_entry = GPTE_ENCODE(__pa(scratch)) |
807 | dma_ops = gart_dma_ops |
809 | swiotlb = 0 |
811 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |