Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memtest.c Create Date:2022-07-28 15:57:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memtest

Proto:static void __init memtest(u64 pattern, phys_addr_t start_phys, phys_addr_t size)

Type:void

Parameter:

TypeParameterName
u64pattern
phys_addr_tstart_phys
phys_addr_tsize
40  incr = size of pattern
42  start_phys_aligned = @a is a power of 2 value (start_phys, incr)
43  start = __va(start_phys_aligned)
44  end = start + (size - start_phys_aligned - start_phys ) / incr
45  start_bad = 0
46  last_bad = 0
48  When p < end cycle p = pattern
51  When p < end cycle
52  If p == pattern Then Continue
54  If start_phys_aligned == last_bad + incr Then
55  last_bad += incr
56  Continue
58  If start_bad Then reserve_bad_mem(pattern, start_bad, last_bad + incr)
60  start_bad = last_bad = start_phys_aligned
62  If start_bad Then reserve_bad_mem(pattern, start_bad, last_bad + incr)
Caller
NameDescribe
do_one_pass