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