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