Debian Codegraph @

Documentation/ABI/testing/sysfs-edac-scrub

raw
1 What: /sys/bus/edac/devices/<dev-name>/scrubX
2 Date: March 2025
3 KernelVersion: 6.15
4 Contact: [email protected]
5 Description:
6 The sysfs EDAC bus devices /<dev-name>/scrubX subdirectory
7 belongs to an instance of memory scrub control feature,
8 where <dev-name> directory corresponds to a device/memory
9 region registered with the EDAC device driver for the
10 scrub control feature.
11
12 The sysfs scrub attr nodes are only present if the parent
13 driver has implemented the corresponding attr callback
14 function and provided the necessary operations to the EDAC
15 device driver during registration.
16
17 What: /sys/bus/edac/devices/<dev-name>/scrubX/addr
18 Date: March 2025
19 KernelVersion: 6.15
20 Contact: [email protected]
21 Description:
22 (RW) The base address of the memory region to be scrubbed
23 for on-demand scrubbing. Setting address starts scrubbing.
24 The size must be set before that.
25
26 The readback addr value is non-zero if the requested
27 on-demand scrubbing is in progress, zero otherwise.
28
29 What: /sys/bus/edac/devices/<dev-name>/scrubX/size
30 Date: March 2025
31 KernelVersion: 6.15
32 Contact: [email protected]
33 Description:
34 (RW) The size of the memory region to be scrubbed
35 (on-demand scrubbing).
36
37 What: /sys/bus/edac/devices/<dev-name>/scrubX/enable_background
38 Date: March 2025
39 KernelVersion: 6.15
40 Contact: [email protected]
41 Description:
42 (RW) Start/Stop background (patrol) scrubbing if supported.
43
44 What: /sys/bus/edac/devices/<dev-name>/scrubX/min_cycle_duration
45 Date: March 2025
46 KernelVersion: 6.15
47 Contact: [email protected]
48 Description:
49 (RO) Supported minimum scrub cycle duration in seconds
50 by the memory scrubber.
51
52 Device-based scrub: returns the minimum scrub cycle
53 supported by the memory device.
54
55 Region-based scrub: returns the max of minimum scrub cycles
56 supported by individual memory devices that back the region.
57
58 What: /sys/bus/edac/devices/<dev-name>/scrubX/max_cycle_duration
59 Date: March 2025
60 KernelVersion: 6.15
61 Contact: [email protected]
62 Description:
63 (RO) Supported maximum scrub cycle duration in seconds
64 by the memory scrubber.
65
66 Device-based scrub: returns the maximum scrub cycle supported
67 by the memory device.
68
69 Region-based scrub: returns the min of maximum scrub cycles
70 supported by individual memory devices that back the region.
71
72 If the memory device does not provide maximum scrub cycle
73 information, return the maximum supported value of the scrub
74 cycle field.
75
76 What: /sys/bus/edac/devices/<dev-name>/scrubX/current_cycle_duration
77 Date: March 2025
78 KernelVersion: 6.15
79 Contact: [email protected]
80 Description:
81 (RW) The current scrub cycle duration in seconds and must be
82 within the supported range by the memory scrubber.
83
84 Scrub has an overhead when running and that may want to be
85 reduced by taking longer to do it.