Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Sandy Bridge graphics has trouble with certain ranges, exclude* them from allocation.

Proto:static void __init trim_snb_memory(void)

Type:void

Parameter:Nothing

706  static const __initconst unsigned long bad_pages[] = {0x20050000, 0x20110000, 0x20130000, 0x20138000, 0x40004000, }
715  If Not snb_gfx_workaround_needed() Then Return
718  printk(debug-level messages "reserving inaccessible SNB gfx pages\n")
724  memblock_reserve(0, 1 << 20)
726  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(bad_pages) cycle
727  If memblock_reserve(bad_pages[i], PAGE_SIZE) Then printk(warning conditions "failed to reserve 0x%08lx\n", bad_pages[i])
Caller
NameDescribe
trim_platform_memory_rangesHere we put platform-specific memory range workarounds, i.e.* memory known to be corrupt or otherwise in need to be reserved on* specific platforms.* If this gets used more widely it could use a real dispatch mechanism.