xref: /linux/Documentation/ABI/testing/sysfs-driver-ufs (revision a4bcbf71914b0cc44151a5238e4a8afa8e3319cd)
1ad448378SAdrian HunterWhat:		/sys/bus/*/drivers/ufshcd/*/auto_hibern8
2ad448378SAdrian HunterDate:		March 2018
3ad448378SAdrian HunterContact:	linux-scsi@vger.kernel.org
4ad448378SAdrian HunterDescription:
5ad448378SAdrian Hunter		This file contains the auto-hibernate idle timer setting of a
6ad448378SAdrian Hunter		UFS host controller. A value of '0' means auto-hibernate is not
7ad448378SAdrian Hunter		enabled. Otherwise the value is the number of microseconds of
8ad448378SAdrian Hunter		idle time before the UFS host controller will autonomously put
9ad448378SAdrian Hunter		the link into hibernate state. That will save power at the
10ad448378SAdrian Hunter		expense of increased latency. Note that the hardware supports
11ad448378SAdrian Hunter		10-bit values with a power-of-ten multiplier which allows a
12ad448378SAdrian Hunter		maximum value of 102300000. Refer to the UFS Host Controller
13ad448378SAdrian Hunter		Interface specification for more details.
14ad448378SAdrian Hunter
1545bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_type
1645bced87SStanislav NijnikovDate:		February 2018
1745bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
1845bced87SStanislav NijnikovDescription:	This file shows the device type. This is one of the UFS
1945bced87SStanislav Nijnikov		device descriptor parameters. The full information about
2045bced87SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
2154a19b4dSMauro Carvalho Chehab
2245bced87SStanislav Nijnikov		The file is read only.
2345bced87SStanislav Nijnikov
2445bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_class
2545bced87SStanislav NijnikovDate:		February 2018
2645bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
2745bced87SStanislav NijnikovDescription:	This file shows the device class. This is one of the UFS
2845bced87SStanislav Nijnikov		device descriptor parameters. The full information about
2945bced87SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
3054a19b4dSMauro Carvalho Chehab
3145bced87SStanislav Nijnikov		The file is read only.
3245bced87SStanislav Nijnikov
3345bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_sub_class
3445bced87SStanislav NijnikovDate:		February 2018
3545bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
3645bced87SStanislav NijnikovDescription:	This file shows the UFS storage subclass. This is one of
3745bced87SStanislav Nijnikov		the UFS device descriptor parameters. The full information
3845bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
3954a19b4dSMauro Carvalho Chehab
4045bced87SStanislav Nijnikov		The file is read only.
4145bced87SStanislav Nijnikov
4245bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/protocol
4345bced87SStanislav NijnikovDate:		February 2018
4445bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
4545bced87SStanislav NijnikovDescription:	This file shows the protocol supported by an UFS device.
4645bced87SStanislav Nijnikov		This is one of the UFS device descriptor parameters.
4745bced87SStanislav Nijnikov		The full information about the descriptor could be found
4845bced87SStanislav Nijnikov		at UFS specifications 2.1.
4954a19b4dSMauro Carvalho Chehab
5045bced87SStanislav Nijnikov		The file is read only.
5145bced87SStanislav Nijnikov
5245bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_luns
5345bced87SStanislav NijnikovDate:		February 2018
5445bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
5545bced87SStanislav NijnikovDescription:	This file shows number of logical units. This is one of
5645bced87SStanislav Nijnikov		the UFS device descriptor parameters. The full information
5745bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
5854a19b4dSMauro Carvalho Chehab
5945bced87SStanislav Nijnikov		The file is read only.
6045bced87SStanislav Nijnikov
6145bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_wluns
6245bced87SStanislav NijnikovDate:		February 2018
6345bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
6445bced87SStanislav NijnikovDescription:	This file shows number of well known logical units.
6545bced87SStanislav Nijnikov		This is one of the UFS device descriptor parameters.
6645bced87SStanislav Nijnikov		The full information about the descriptor could be found
6745bced87SStanislav Nijnikov		at UFS specifications 2.1.
6854a19b4dSMauro Carvalho Chehab
6945bced87SStanislav Nijnikov		The file is read only.
7045bced87SStanislav Nijnikov
7145bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/boot_enable
7245bced87SStanislav NijnikovDate:		February 2018
7345bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
7445bced87SStanislav NijnikovDescription:	This file shows value that indicates whether the device is
7545bced87SStanislav Nijnikov		enabled for boot. This is one of the UFS device descriptor
7645bced87SStanislav Nijnikov		parameters. The full information about the descriptor could
7745bced87SStanislav Nijnikov		be found at UFS specifications 2.1.
7854a19b4dSMauro Carvalho Chehab
7945bced87SStanislav Nijnikov		The file is read only.
8045bced87SStanislav Nijnikov
8145bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/descriptor_access_enable
8245bced87SStanislav NijnikovDate:		February 2018
8345bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
8445bced87SStanislav NijnikovDescription:	This file shows value that indicates whether the device
8545bced87SStanislav Nijnikov		descriptor could be read after partial initialization phase
8645bced87SStanislav Nijnikov		of the boot sequence. This is one of the UFS device descriptor
8745bced87SStanislav Nijnikov		parameters. The full information about the descriptor could
8845bced87SStanislav Nijnikov		be found at UFS specifications 2.1.
8954a19b4dSMauro Carvalho Chehab
9045bced87SStanislav Nijnikov		The file is read only.
9145bced87SStanislav Nijnikov
9245bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/initial_power_mode
9345bced87SStanislav NijnikovDate:		February 2018
9445bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
9545bced87SStanislav NijnikovDescription:	This file shows value that defines the power mode after
9645bced87SStanislav Nijnikov		device initialization or hardware reset. This is one of
9745bced87SStanislav Nijnikov		the UFS device descriptor parameters. The full information
9845bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
9954a19b4dSMauro Carvalho Chehab
10045bced87SStanislav Nijnikov		The file is read only.
10145bced87SStanislav Nijnikov
10245bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/high_priority_lun
10345bced87SStanislav NijnikovDate:		February 2018
10445bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
10545bced87SStanislav NijnikovDescription:	This file shows the high priority lun. This is one of
10645bced87SStanislav Nijnikov		the UFS device descriptor parameters. The full information
10745bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
10854a19b4dSMauro Carvalho Chehab
10945bced87SStanislav Nijnikov		The file is read only.
11045bced87SStanislav Nijnikov
11145bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/secure_removal_type
11245bced87SStanislav NijnikovDate:		February 2018
11345bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
11445bced87SStanislav NijnikovDescription:	This file shows the secure removal type. This is one of
11545bced87SStanislav Nijnikov		the UFS device descriptor parameters. The full information
11645bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
11754a19b4dSMauro Carvalho Chehab
11845bced87SStanislav Nijnikov		The file is read only.
11945bced87SStanislav Nijnikov
12045bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/support_security_lun
12145bced87SStanislav NijnikovDate:		February 2018
12245bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
12345bced87SStanislav NijnikovDescription:	This file shows whether the security lun is supported.
12445bced87SStanislav Nijnikov		This is one of the UFS device descriptor parameters.
12545bced87SStanislav Nijnikov		The full information about the descriptor could be found
12645bced87SStanislav Nijnikov		at UFS specifications 2.1.
12754a19b4dSMauro Carvalho Chehab
12845bced87SStanislav Nijnikov		The file is read only.
12945bced87SStanislav Nijnikov
13045bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/bkops_termination_latency
13145bced87SStanislav NijnikovDate:		February 2018
13245bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
13345bced87SStanislav NijnikovDescription:	This file shows the background operations termination
13445bced87SStanislav Nijnikov		latency. This is one of the UFS device descriptor parameters.
13545bced87SStanislav Nijnikov		The full information about the descriptor could be found
13645bced87SStanislav Nijnikov		at UFS specifications 2.1.
13754a19b4dSMauro Carvalho Chehab
13845bced87SStanislav Nijnikov		The file is read only.
13945bced87SStanislav Nijnikov
14045bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/initial_active_icc_level
14145bced87SStanislav NijnikovDate:		February 2018
14245bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
14345bced87SStanislav NijnikovDescription:	This file shows the initial active ICC level. This is one
14445bced87SStanislav Nijnikov		of the UFS device descriptor parameters. The full information
14545bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
14654a19b4dSMauro Carvalho Chehab
14745bced87SStanislav Nijnikov		The file is read only.
14845bced87SStanislav Nijnikov
14945bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/specification_version
15045bced87SStanislav NijnikovDate:		February 2018
15145bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
15245bced87SStanislav NijnikovDescription:	This file shows the specification version. This is one
15345bced87SStanislav Nijnikov		of the UFS device descriptor parameters. The full information
15445bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
15554a19b4dSMauro Carvalho Chehab
15645bced87SStanislav Nijnikov		The file is read only.
15745bced87SStanislav Nijnikov
15845bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/manufacturing_date
15945bced87SStanislav NijnikovDate:		February 2018
16045bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
16145bced87SStanislav NijnikovDescription:	This file shows the manufacturing date in BCD format.
16245bced87SStanislav Nijnikov		This is one of the UFS device descriptor parameters.
16345bced87SStanislav Nijnikov		The full information about the descriptor could be found
16445bced87SStanislav Nijnikov		at UFS specifications 2.1.
16554a19b4dSMauro Carvalho Chehab
16645bced87SStanislav Nijnikov		The file is read only.
16745bced87SStanislav Nijnikov
16845bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/manufacturer_id
16945bced87SStanislav NijnikovDate:		February 2018
17045bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
1713e42d1deSCarlos BilbaoDescription:	This file shows the manufacturer ID. This is one of the
17245bced87SStanislav Nijnikov		UFS device descriptor parameters. The full information about
17345bced87SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
17454a19b4dSMauro Carvalho Chehab
17545bced87SStanislav Nijnikov		The file is read only.
17645bced87SStanislav Nijnikov
17745bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/rtt_capability
17845bced87SStanislav NijnikovDate:		February 2018
17945bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
18045bced87SStanislav NijnikovDescription:	This file shows the maximum number of outstanding RTTs
18145bced87SStanislav Nijnikov		supported by the device. This is one of the UFS device
18245bced87SStanislav Nijnikov		descriptor parameters. The full information about
18345bced87SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
18454a19b4dSMauro Carvalho Chehab
18545bced87SStanislav Nijnikov		The file is read only.
18645bced87SStanislav Nijnikov
18745bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/rtc_update
18845bced87SStanislav NijnikovDate:		February 2018
18945bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
19045bced87SStanislav NijnikovDescription:	This file shows the frequency and method of the realtime
19145bced87SStanislav Nijnikov		clock update. This is one of the UFS device descriptor
19245bced87SStanislav Nijnikov		parameters. The full information about the descriptor
19345bced87SStanislav Nijnikov		could be found at UFS specifications 2.1.
19454a19b4dSMauro Carvalho Chehab
19545bced87SStanislav Nijnikov		The file is read only.
19645bced87SStanislav Nijnikov
19745bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/ufs_features
19845bced87SStanislav NijnikovDate:		February 2018
19945bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
20045bced87SStanislav NijnikovDescription:	This file shows which features are supported by the device.
20145bced87SStanislav Nijnikov		This is one of the UFS device descriptor parameters.
20245bced87SStanislav Nijnikov		The full information about the descriptor could be
20345bced87SStanislav Nijnikov		found at UFS specifications 2.1.
20454a19b4dSMauro Carvalho Chehab
20545bced87SStanislav Nijnikov		The file is read only.
20645bced87SStanislav Nijnikov
20745bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/ffu_timeout
20845bced87SStanislav NijnikovDate:		February 2018
20945bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
21045bced87SStanislav NijnikovDescription:	This file shows the FFU timeout. This is one of the
21145bced87SStanislav Nijnikov		UFS device descriptor parameters. The full information
21245bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
21354a19b4dSMauro Carvalho Chehab
21445bced87SStanislav Nijnikov		The file is read only.
21545bced87SStanislav Nijnikov
21645bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/queue_depth
21745bced87SStanislav NijnikovDate:		February 2018
21845bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
21945bced87SStanislav NijnikovDescription:	This file shows the device queue depth. This is one of the
22045bced87SStanislav Nijnikov		UFS device descriptor parameters. The full information
22145bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
22254a19b4dSMauro Carvalho Chehab
22345bced87SStanislav Nijnikov		The file is read only.
22445bced87SStanislav Nijnikov
22545bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_version
22645bced87SStanislav NijnikovDate:		February 2018
22745bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
22845bced87SStanislav NijnikovDescription:	This file shows the device version. This is one of the
22945bced87SStanislav Nijnikov		UFS device descriptor parameters. The full information
23045bced87SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
23154a19b4dSMauro Carvalho Chehab
23245bced87SStanislav Nijnikov		The file is read only.
23345bced87SStanislav Nijnikov
23445bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_secure_wpa
23545bced87SStanislav NijnikovDate:		February 2018
23645bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
23745bced87SStanislav NijnikovDescription:	This file shows number of secure write protect areas
23845bced87SStanislav Nijnikov		supported by the device. This is one of the UFS device
23945bced87SStanislav Nijnikov		descriptor parameters. The full information about
24045bced87SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
24154a19b4dSMauro Carvalho Chehab
24245bced87SStanislav Nijnikov		The file is read only.
24345bced87SStanislav Nijnikov
24445bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/psa_max_data_size
24545bced87SStanislav NijnikovDate:		February 2018
24645bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
24745bced87SStanislav NijnikovDescription:	This file shows the maximum amount of data that may be
24845bced87SStanislav Nijnikov		written during the pre-soldering phase of the PSA flow.
24945bced87SStanislav Nijnikov		This is one of the UFS device descriptor parameters.
25045bced87SStanislav Nijnikov		The full information about the descriptor could be found
25145bced87SStanislav Nijnikov		at UFS specifications 2.1.
25254a19b4dSMauro Carvalho Chehab
25345bced87SStanislav Nijnikov		The file is read only.
25445bced87SStanislav Nijnikov
25545bced87SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/psa_state_timeout
25645bced87SStanislav NijnikovDate:		February 2018
25745bced87SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
25845bced87SStanislav NijnikovDescription:	This file shows the command maximum timeout for a change
25945bced87SStanislav Nijnikov		in PSA state. This is one of the UFS device descriptor
26045bced87SStanislav Nijnikov		parameters. The full information about the descriptor could
26145bced87SStanislav Nijnikov		be found at UFS specifications 2.1.
26254a19b4dSMauro Carvalho Chehab
26345bced87SStanislav Nijnikov		The file is read only.
2648c2582bfSStanislav Nijnikov
2658c2582bfSStanislav Nijnikov
2668c2582bfSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/interconnect_descriptor/unipro_version
2678c2582bfSStanislav NijnikovDate:		February 2018
2688c2582bfSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
2698c2582bfSStanislav NijnikovDescription:	This file shows the MIPI UniPro version number in BCD format.
2708c2582bfSStanislav Nijnikov		This is one of the UFS interconnect descriptor parameters.
2718c2582bfSStanislav Nijnikov		The full information about the descriptor could be found at
2728c2582bfSStanislav Nijnikov		UFS specifications 2.1.
27354a19b4dSMauro Carvalho Chehab
2748c2582bfSStanislav Nijnikov		The file is read only.
2758c2582bfSStanislav Nijnikov
2768c2582bfSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/interconnect_descriptor/mphy_version
2778c2582bfSStanislav NijnikovDate:		February 2018
2788c2582bfSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
2798c2582bfSStanislav NijnikovDescription:	This file shows the MIPI M-PHY version number in BCD format.
2808c2582bfSStanislav Nijnikov		This is one of the UFS interconnect descriptor parameters.
2818c2582bfSStanislav Nijnikov		The full information about the descriptor could be found at
2828c2582bfSStanislav Nijnikov		UFS specifications 2.1.
28354a19b4dSMauro Carvalho Chehab
2848c2582bfSStanislav Nijnikov		The file is read only.
285c720c091SStanislav Nijnikov
286c720c091SStanislav Nijnikov
287c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/raw_device_capacity
288c720c091SStanislav NijnikovDate:		February 2018
289c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
290c720c091SStanislav NijnikovDescription:	This file shows the total memory quantity available to
291c720c091SStanislav Nijnikov		the user to configure the device logical units. This is one
292c720c091SStanislav Nijnikov		of the UFS geometry descriptor parameters. The full
293c720c091SStanislav Nijnikov		information about the descriptor could be found at
294c720c091SStanislav Nijnikov		UFS specifications 2.1.
29554a19b4dSMauro Carvalho Chehab
296c720c091SStanislav Nijnikov		The file is read only.
297c720c091SStanislav Nijnikov
298c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_number_of_luns
299c720c091SStanislav NijnikovDate:		February 2018
300c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
301c720c091SStanislav NijnikovDescription:	This file shows the maximum number of logical units
302c720c091SStanislav Nijnikov		supported by the UFS device. This is one of the UFS
303c720c091SStanislav Nijnikov		geometry descriptor parameters. The full information about
304c720c091SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
30554a19b4dSMauro Carvalho Chehab
306c720c091SStanislav Nijnikov		The file is read only.
307c720c091SStanislav Nijnikov
308c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/segment_size
309c720c091SStanislav NijnikovDate:		February 2018
310c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
311c720c091SStanislav NijnikovDescription:	This file shows the segment size. This is one of the UFS
312c720c091SStanislav Nijnikov		geometry descriptor parameters. The full information about
313c720c091SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
31454a19b4dSMauro Carvalho Chehab
315c720c091SStanislav Nijnikov		The file is read only.
316c720c091SStanislav Nijnikov
317c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/allocation_unit_size
318c720c091SStanislav NijnikovDate:		February 2018
319c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
320c720c091SStanislav NijnikovDescription:	This file shows the allocation unit size. This is one of
321c720c091SStanislav Nijnikov		the UFS geometry descriptor parameters. The full information
322c720c091SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
32354a19b4dSMauro Carvalho Chehab
324c720c091SStanislav Nijnikov		The file is read only.
325c720c091SStanislav Nijnikov
326c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/min_addressable_block_size
327c720c091SStanislav NijnikovDate:		February 2018
328c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
329c720c091SStanislav NijnikovDescription:	This file shows the minimum addressable block size. This
330c720c091SStanislav Nijnikov		is one of the UFS geometry descriptor parameters. The full
331c720c091SStanislav Nijnikov		information about the descriptor could be found at UFS
332c720c091SStanislav Nijnikov		specifications 2.1.
33354a19b4dSMauro Carvalho Chehab
334c720c091SStanislav Nijnikov		The file is read only.
335c720c091SStanislav Nijnikov
336c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/optimal_read_block_size
337c720c091SStanislav NijnikovDate:		February 2018
338c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
339c720c091SStanislav NijnikovDescription:	This file shows the optimal read block size. This is one
340c720c091SStanislav Nijnikov		of the UFS geometry descriptor parameters. The full
341c720c091SStanislav Nijnikov		information about the descriptor could be found at UFS
342c720c091SStanislav Nijnikov		specifications 2.1.
34354a19b4dSMauro Carvalho Chehab
344c720c091SStanislav Nijnikov		The file is read only.
345c720c091SStanislav Nijnikov
346c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/optimal_write_block_size
347c720c091SStanislav NijnikovDate:		February 2018
348c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
349c720c091SStanislav NijnikovDescription:	This file shows the optimal write block size. This is one
350c720c091SStanislav Nijnikov		of the UFS geometry descriptor parameters. The full
351c720c091SStanislav Nijnikov		information about the descriptor could be found at UFS
352c720c091SStanislav Nijnikov		specifications 2.1.
35354a19b4dSMauro Carvalho Chehab
354c720c091SStanislav Nijnikov		The file is read only.
355c720c091SStanislav Nijnikov
356c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_in_buffer_size
357c720c091SStanislav NijnikovDate:		February 2018
358c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
359c720c091SStanislav NijnikovDescription:	This file shows the maximum data-in buffer size. This
360c720c091SStanislav Nijnikov		is one of the UFS geometry descriptor parameters. The full
361c720c091SStanislav Nijnikov		information about the descriptor could be found at UFS
362c720c091SStanislav Nijnikov		specifications 2.1.
36354a19b4dSMauro Carvalho Chehab
364c720c091SStanislav Nijnikov		The file is read only.
365c720c091SStanislav Nijnikov
366c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_out_buffer_size
367c720c091SStanislav NijnikovDate:		February 2018
368c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
369c720c091SStanislav NijnikovDescription:	This file shows the maximum data-out buffer size. This
370c720c091SStanislav Nijnikov		is one of the UFS geometry descriptor parameters. The full
371c720c091SStanislav Nijnikov		information about the descriptor could be found at UFS
372c720c091SStanislav Nijnikov		specifications 2.1.
37354a19b4dSMauro Carvalho Chehab
374c720c091SStanislav Nijnikov		The file is read only.
375c720c091SStanislav Nijnikov
376c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/rpmb_rw_size
377c720c091SStanislav NijnikovDate:		February 2018
378c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
379c720c091SStanislav NijnikovDescription:	This file shows the maximum number of RPMB frames allowed
380c720c091SStanislav Nijnikov		in Security Protocol In/Out. This is one of the UFS geometry
381c720c091SStanislav Nijnikov		descriptor parameters. The full information about the
382c720c091SStanislav Nijnikov		descriptor could be found at UFS specifications 2.1.
38354a19b4dSMauro Carvalho Chehab
384c720c091SStanislav Nijnikov		The file is read only.
385c720c091SStanislav Nijnikov
386c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/dyn_capacity_resource_policy
387c720c091SStanislav NijnikovDate:		February 2018
388c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
389c720c091SStanislav NijnikovDescription:	This file shows the dynamic capacity resource policy. This
390c720c091SStanislav Nijnikov		is one of the UFS geometry descriptor parameters. The full
391c720c091SStanislav Nijnikov		information about the descriptor could be found at
392c720c091SStanislav Nijnikov		UFS specifications 2.1.
39354a19b4dSMauro Carvalho Chehab
394c720c091SStanislav Nijnikov		The file is read only.
395c720c091SStanislav Nijnikov
396c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/data_ordering
397c720c091SStanislav NijnikovDate:		February 2018
398c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
399c720c091SStanislav NijnikovDescription:	This file shows support for out-of-order data transfer.
400c720c091SStanislav Nijnikov		This is one of the UFS geometry descriptor parameters.
401c720c091SStanislav Nijnikov		The full information about the descriptor could be found at
402c720c091SStanislav Nijnikov		UFS specifications 2.1.
40354a19b4dSMauro Carvalho Chehab
404c720c091SStanislav Nijnikov		The file is read only.
405c720c091SStanislav Nijnikov
406c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_number_of_contexts
407c720c091SStanislav NijnikovDate:		February 2018
408c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
409c720c091SStanislav NijnikovDescription:	This file shows maximum available number of contexts which
410c720c091SStanislav Nijnikov		are supported by the device. This is one of the UFS geometry
411c720c091SStanislav Nijnikov		descriptor parameters. The full information about the
412c720c091SStanislav Nijnikov		descriptor could be found at UFS specifications 2.1.
41354a19b4dSMauro Carvalho Chehab
414c720c091SStanislav Nijnikov		The file is read only.
415c720c091SStanislav Nijnikov
416c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/sys_data_tag_unit_size
417c720c091SStanislav NijnikovDate:		February 2018
418c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
419c720c091SStanislav NijnikovDescription:	This file shows system data tag unit size. This is one of
420c720c091SStanislav Nijnikov		the UFS geometry descriptor parameters. The full information
421c720c091SStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
42254a19b4dSMauro Carvalho Chehab
423c720c091SStanislav Nijnikov		The file is read only.
424c720c091SStanislav Nijnikov
425c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/sys_data_tag_resource_size
426c720c091SStanislav NijnikovDate:		February 2018
427c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
428c720c091SStanislav NijnikovDescription:	This file shows maximum storage area size allocated by
429c720c091SStanislav Nijnikov		the device to handle system data by the tagging mechanism.
430c720c091SStanislav Nijnikov		This is one of the UFS geometry descriptor parameters.
431c720c091SStanislav Nijnikov		The full information about the descriptor could be found at
432c720c091SStanislav Nijnikov		UFS specifications 2.1.
43354a19b4dSMauro Carvalho Chehab
434c720c091SStanislav Nijnikov		The file is read only.
435c720c091SStanislav Nijnikov
436c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/secure_removal_types
437c720c091SStanislav NijnikovDate:		February 2018
438c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
439c720c091SStanislav NijnikovDescription:	This file shows supported secure removal types. This is
440c720c091SStanislav Nijnikov		one of the UFS geometry descriptor parameters. The full
441c720c091SStanislav Nijnikov		information about the descriptor could be found at
442c720c091SStanislav Nijnikov		UFS specifications 2.1.
44354a19b4dSMauro Carvalho Chehab
444c720c091SStanislav Nijnikov		The file is read only.
445c720c091SStanislav Nijnikov
446c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/memory_types
447c720c091SStanislav NijnikovDate:		February 2018
448c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
449c720c091SStanislav NijnikovDescription:	This file shows supported memory types. This is one of
450c720c091SStanislav Nijnikov		the UFS geometry descriptor parameters. The full
451c720c091SStanislav Nijnikov		information about the descriptor could be found at
452c720c091SStanislav Nijnikov		UFS specifications 2.1.
45354a19b4dSMauro Carvalho Chehab
454c720c091SStanislav Nijnikov		The file is read only.
455c720c091SStanislav Nijnikov
456c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/*_memory_max_alloc_units
457c720c091SStanislav NijnikovDate:		February 2018
458c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
459c720c091SStanislav NijnikovDescription:	This file shows the maximum number of allocation units for
460c720c091SStanislav Nijnikov		different memory types (system code, non persistent,
461c720c091SStanislav Nijnikov		enhanced type 1-4). This is one of the UFS geometry
462c720c091SStanislav Nijnikov		descriptor parameters. The full information about the
463c720c091SStanislav Nijnikov		descriptor could be found at UFS specifications 2.1.
46454a19b4dSMauro Carvalho Chehab
465c720c091SStanislav Nijnikov		The file is read only.
466c720c091SStanislav Nijnikov
467c720c091SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/*_memory_capacity_adjustment_factor
468c720c091SStanislav NijnikovDate:		February 2018
469c720c091SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
470c720c091SStanislav NijnikovDescription:	This file shows the memory capacity adjustment factor for
471c720c091SStanislav Nijnikov		different memory types (system code, non persistent,
472c720c091SStanislav Nijnikov		enhanced type 1-4). This is one of the UFS geometry
473c720c091SStanislav Nijnikov		descriptor parameters. The full information about the
474c720c091SStanislav Nijnikov		descriptor could be found at UFS specifications 2.1.
47554a19b4dSMauro Carvalho Chehab
476c720c091SStanislav Nijnikov		The file is read only.
477c648c2d2SStanislav Nijnikov
478c648c2d2SStanislav Nijnikov
479c648c2d2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/health_descriptor/eol_info
480c648c2d2SStanislav NijnikovDate:		February 2018
481c648c2d2SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
482c648c2d2SStanislav NijnikovDescription:	This file shows preend of life information. This is one
483c648c2d2SStanislav Nijnikov		of the UFS health descriptor parameters. The full
484c648c2d2SStanislav Nijnikov		information about the descriptor could be found at
485c648c2d2SStanislav Nijnikov		UFS specifications 2.1.
48654a19b4dSMauro Carvalho Chehab
487c648c2d2SStanislav Nijnikov		The file is read only.
488c648c2d2SStanislav Nijnikov
489c648c2d2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/health_descriptor/life_time_estimation_a
490c648c2d2SStanislav NijnikovDate:		February 2018
491c648c2d2SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
492c648c2d2SStanislav NijnikovDescription:	This file shows indication of the device life time
493c648c2d2SStanislav Nijnikov		(method a). This is one of the UFS health descriptor
494c648c2d2SStanislav Nijnikov		parameters. The full information about the descriptor
495c648c2d2SStanislav Nijnikov		could be found at UFS specifications 2.1.
49654a19b4dSMauro Carvalho Chehab
497c648c2d2SStanislav Nijnikov		The file is read only.
498c648c2d2SStanislav Nijnikov
499c648c2d2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/health_descriptor/life_time_estimation_b
500c648c2d2SStanislav NijnikovDate:		February 2018
501c648c2d2SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
502c648c2d2SStanislav NijnikovDescription:	This file shows indication of the device life time
503c648c2d2SStanislav Nijnikov		(method b). This is one of the UFS health descriptor
504c648c2d2SStanislav Nijnikov		parameters. The full information about the descriptor
505c648c2d2SStanislav Nijnikov		could be found at UFS specifications 2.1.
50654a19b4dSMauro Carvalho Chehab
507c648c2d2SStanislav Nijnikov		The file is read only.
508c2e6e283SStanislav Nijnikov
509c2e6e283SStanislav Nijnikov
510c2e6e283SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/power_descriptor/active_icc_levels_vcc*
511c2e6e283SStanislav NijnikovDate:		February 2018
512c2e6e283SStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
513c2e6e283SStanislav NijnikovDescription:	This file shows maximum VCC, VCCQ and VCCQ2 value for
514c2e6e283SStanislav Nijnikov		active ICC levels from 0 to 15. This is one of the UFS
515c2e6e283SStanislav Nijnikov		power descriptor parameters. The full information about
516c2e6e283SStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
51754a19b4dSMauro Carvalho Chehab
518c2e6e283SStanislav Nijnikov		The file is read only.
5192238d31cSStanislav Nijnikov
5202238d31cSStanislav Nijnikov
5212238d31cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/string_descriptors/manufacturer_name
5222238d31cSStanislav NijnikovDate:		February 2018
5232238d31cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
5243e42d1deSCarlos BilbaoDescription:	This file contains a device manufacturer name string.
5252238d31cSStanislav Nijnikov		The full information about the descriptor could be found at
5262238d31cSStanislav Nijnikov		UFS specifications 2.1.
52754a19b4dSMauro Carvalho Chehab
5282238d31cSStanislav Nijnikov		The file is read only.
5292238d31cSStanislav Nijnikov
5302238d31cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/string_descriptors/product_name
5312238d31cSStanislav NijnikovDate:		February 2018
5322238d31cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
5332238d31cSStanislav NijnikovDescription:	This file contains a product name string. The full information
5342238d31cSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
53554a19b4dSMauro Carvalho Chehab
5362238d31cSStanislav Nijnikov		The file is read only.
5372238d31cSStanislav Nijnikov
5382238d31cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/string_descriptors/oem_id
5392238d31cSStanislav NijnikovDate:		February 2018
5402238d31cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
5412238d31cSStanislav NijnikovDescription:	This file contains a OEM ID string. The full information
5422238d31cSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
54354a19b4dSMauro Carvalho Chehab
5442238d31cSStanislav Nijnikov		The file is read only.
5452238d31cSStanislav Nijnikov
5462238d31cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/string_descriptors/serial_number
5472238d31cSStanislav NijnikovDate:		February 2018
5482238d31cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
5492238d31cSStanislav NijnikovDescription:	This file contains a device serial number string. The full
5502238d31cSStanislav Nijnikov		information about the descriptor could be found at
5512238d31cSStanislav Nijnikov		UFS specifications 2.1.
55254a19b4dSMauro Carvalho Chehab
5532238d31cSStanislav Nijnikov		The file is read only.
5542238d31cSStanislav Nijnikov
5552238d31cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/string_descriptors/product_revision
5562238d31cSStanislav NijnikovDate:		February 2018
5572238d31cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
5582238d31cSStanislav NijnikovDescription:	This file contains a product revision string. The full
5592238d31cSStanislav Nijnikov		information about the descriptor could be found at
5602238d31cSStanislav Nijnikov		UFS specifications 2.1.
56154a19b4dSMauro Carvalho Chehab
5622238d31cSStanislav Nijnikov		The file is read only.
563d829fc8aSStanislav Nijnikov
564d829fc8aSStanislav Nijnikov
565d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/boot_lun_id
566d829fc8aSStanislav NijnikovDate:		February 2018
567d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
568d829fc8aSStanislav NijnikovDescription:	This file shows boot LUN information. This is one of
569d829fc8aSStanislav Nijnikov		the UFS unit descriptor parameters. The full information
570d829fc8aSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
57154a19b4dSMauro Carvalho Chehab
572d829fc8aSStanislav Nijnikov		The file is read only.
573d829fc8aSStanislav Nijnikov
574d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/lun_write_protect
575d829fc8aSStanislav NijnikovDate:		February 2018
576d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
577d829fc8aSStanislav NijnikovDescription:	This file shows LUN write protection status. This is one of
578d829fc8aSStanislav Nijnikov		the UFS unit descriptor parameters. The full information
579d829fc8aSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
58054a19b4dSMauro Carvalho Chehab
581d829fc8aSStanislav Nijnikov		The file is read only.
582d829fc8aSStanislav Nijnikov
583d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/lun_queue_depth
584d829fc8aSStanislav NijnikovDate:		February 2018
585d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
586d829fc8aSStanislav NijnikovDescription:	This file shows LUN queue depth. This is one of the UFS
587d829fc8aSStanislav Nijnikov		unit descriptor parameters. The full information about
588d829fc8aSStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
58954a19b4dSMauro Carvalho Chehab
590d829fc8aSStanislav Nijnikov		The file is read only.
591d829fc8aSStanislav Nijnikov
592d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/psa_sensitive
593d829fc8aSStanislav NijnikovDate:		February 2018
594d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
595d829fc8aSStanislav NijnikovDescription:	This file shows PSA sensitivity. This is one of the UFS
596d829fc8aSStanislav Nijnikov		unit descriptor parameters. The full information about
597d829fc8aSStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
59854a19b4dSMauro Carvalho Chehab
599d829fc8aSStanislav Nijnikov		The file is read only.
600d829fc8aSStanislav Nijnikov
601d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/lun_memory_type
602d829fc8aSStanislav NijnikovDate:		February 2018
603d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
604d829fc8aSStanislav NijnikovDescription:	This file shows LUN memory type. This is one of the UFS
605d829fc8aSStanislav Nijnikov		unit descriptor parameters. The full information about
606d829fc8aSStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
60754a19b4dSMauro Carvalho Chehab
608d829fc8aSStanislav Nijnikov		The file is read only.
609d829fc8aSStanislav Nijnikov
610d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/data_reliability
611d829fc8aSStanislav NijnikovDate:		February 2018
612d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
613d829fc8aSStanislav NijnikovDescription:	This file defines the device behavior when a power failure
614d829fc8aSStanislav Nijnikov		occurs during a write operation. This is one of the UFS
615d829fc8aSStanislav Nijnikov		unit descriptor parameters. The full information about
616d829fc8aSStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
61754a19b4dSMauro Carvalho Chehab
618d829fc8aSStanislav Nijnikov		The file is read only.
619d829fc8aSStanislav Nijnikov
620d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/logical_block_size
621d829fc8aSStanislav NijnikovDate:		February 2018
622d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
623d829fc8aSStanislav NijnikovDescription:	This file shows the size of addressable logical blocks
624d829fc8aSStanislav Nijnikov		(calculated as an exponent with base 2). This is one of
625d829fc8aSStanislav Nijnikov		the UFS unit descriptor parameters. The full information about
626d829fc8aSStanislav Nijnikov		the descriptor could be found at UFS specifications 2.1.
62754a19b4dSMauro Carvalho Chehab
628d829fc8aSStanislav Nijnikov		The file is read only.
629d829fc8aSStanislav Nijnikov
630d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/logical_block_count
631d829fc8aSStanislav NijnikovDate:		February 2018
632d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
633d829fc8aSStanislav NijnikovDescription:	This file shows total number of addressable logical blocks.
634d829fc8aSStanislav Nijnikov		This is one of the UFS unit descriptor parameters. The full
635d829fc8aSStanislav Nijnikov		information about the descriptor could be found at
636d829fc8aSStanislav Nijnikov		UFS specifications 2.1.
63754a19b4dSMauro Carvalho Chehab
638d829fc8aSStanislav Nijnikov		The file is read only.
639d829fc8aSStanislav Nijnikov
640d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/erase_block_size
641d829fc8aSStanislav NijnikovDate:		February 2018
642d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
643d829fc8aSStanislav NijnikovDescription:	This file shows the erase block size. This is one of
644d829fc8aSStanislav Nijnikov		the UFS unit descriptor parameters. The full information
645d829fc8aSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
64654a19b4dSMauro Carvalho Chehab
647d829fc8aSStanislav Nijnikov		The file is read only.
648d829fc8aSStanislav Nijnikov
649d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/provisioning_type
650d829fc8aSStanislav NijnikovDate:		February 2018
651d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
652d829fc8aSStanislav NijnikovDescription:	This file shows the thin provisioning type. This is one of
653d829fc8aSStanislav Nijnikov		the UFS unit descriptor parameters. The full information
654d829fc8aSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
65554a19b4dSMauro Carvalho Chehab
656d829fc8aSStanislav Nijnikov		The file is read only.
657d829fc8aSStanislav Nijnikov
658d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_count
659d829fc8aSStanislav NijnikovDate:		February 2018
660d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
661d829fc8aSStanislav NijnikovDescription:	This file shows the total physical memory resources. This is
662d829fc8aSStanislav Nijnikov		one of the UFS unit descriptor parameters. The full information
663d829fc8aSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
66454a19b4dSMauro Carvalho Chehab
665d829fc8aSStanislav Nijnikov		The file is read only.
666d829fc8aSStanislav Nijnikov
667d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/context_capabilities
668d829fc8aSStanislav NijnikovDate:		February 2018
669d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
670d829fc8aSStanislav NijnikovDescription:	This file shows the context capabilities. This is one of
671d829fc8aSStanislav Nijnikov		the UFS unit descriptor parameters. The full information
672d829fc8aSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
67354a19b4dSMauro Carvalho Chehab
674d829fc8aSStanislav Nijnikov		The file is read only.
675d829fc8aSStanislav Nijnikov
676d829fc8aSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/unit_descriptor/large_unit_granularity
677d829fc8aSStanislav NijnikovDate:		February 2018
678d829fc8aSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
679d829fc8aSStanislav NijnikovDescription:	This file shows the granularity of the LUN. This is one of
680d829fc8aSStanislav Nijnikov		the UFS unit descriptor parameters. The full information
681d829fc8aSStanislav Nijnikov		about the descriptor could be found at UFS specifications 2.1.
68254a19b4dSMauro Carvalho Chehab
683d829fc8aSStanislav Nijnikov		The file is read only.
684d10b2a8eSStanislav Nijnikov
685d10b2a8eSStanislav Nijnikov
686d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/device_init
687d10b2a8eSStanislav NijnikovDate:		February 2018
688d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
689d10b2a8eSStanislav NijnikovDescription:	This file shows the device init status. The full information
690d10b2a8eSStanislav Nijnikov		about the flag could be found at UFS specifications 2.1.
69154a19b4dSMauro Carvalho Chehab
692d10b2a8eSStanislav Nijnikov		The file is read only.
693d10b2a8eSStanislav Nijnikov
694d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/permanent_wpe
695d10b2a8eSStanislav NijnikovDate:		February 2018
696d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
697d10b2a8eSStanislav NijnikovDescription:	This file shows whether permanent write protection is enabled.
698d10b2a8eSStanislav Nijnikov		The full information about the flag could be found at
699d10b2a8eSStanislav Nijnikov		UFS specifications 2.1.
70054a19b4dSMauro Carvalho Chehab
701d10b2a8eSStanislav Nijnikov		The file is read only.
702d10b2a8eSStanislav Nijnikov
703d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/power_on_wpe
704d10b2a8eSStanislav NijnikovDate:		February 2018
705d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
706d10b2a8eSStanislav NijnikovDescription:	This file shows whether write protection is enabled on all
707d10b2a8eSStanislav Nijnikov		logical units configured as power on write protected. The
708d10b2a8eSStanislav Nijnikov		full information about the flag could be found at
709d10b2a8eSStanislav Nijnikov		UFS specifications 2.1.
71054a19b4dSMauro Carvalho Chehab
711d10b2a8eSStanislav Nijnikov		The file is read only.
712d10b2a8eSStanislav Nijnikov
713d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/bkops_enable
714d10b2a8eSStanislav NijnikovDate:		February 2018
715d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
716d10b2a8eSStanislav NijnikovDescription:	This file shows whether the device background operations are
717d10b2a8eSStanislav Nijnikov		enabled. The full information about the flag could be
718d10b2a8eSStanislav Nijnikov		found at UFS specifications 2.1.
71954a19b4dSMauro Carvalho Chehab
720d10b2a8eSStanislav Nijnikov		The file is read only.
721d10b2a8eSStanislav Nijnikov
722d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/life_span_mode_enable
723d10b2a8eSStanislav NijnikovDate:		February 2018
724d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
725d10b2a8eSStanislav NijnikovDescription:	This file shows whether the device life span mode is enabled.
726d10b2a8eSStanislav Nijnikov		The full information about the flag could be found at
727d10b2a8eSStanislav Nijnikov		UFS specifications 2.1.
72854a19b4dSMauro Carvalho Chehab
729d10b2a8eSStanislav Nijnikov		The file is read only.
730d10b2a8eSStanislav Nijnikov
731d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/phy_resource_removal
732d10b2a8eSStanislav NijnikovDate:		February 2018
733d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
734d10b2a8eSStanislav NijnikovDescription:	This file shows whether physical resource removal is enable.
735d10b2a8eSStanislav Nijnikov		The full information about the flag could be found at
736d10b2a8eSStanislav Nijnikov		UFS specifications 2.1.
73754a19b4dSMauro Carvalho Chehab
738d10b2a8eSStanislav Nijnikov		The file is read only.
739d10b2a8eSStanislav Nijnikov
740d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/busy_rtc
741d10b2a8eSStanislav NijnikovDate:		February 2018
742d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
743d10b2a8eSStanislav NijnikovDescription:	This file shows whether the device is executing internal
744d10b2a8eSStanislav Nijnikov		operation related to real time clock. The full information
745d10b2a8eSStanislav Nijnikov		about the flag could be found at UFS specifications 2.1.
74654a19b4dSMauro Carvalho Chehab
747d10b2a8eSStanislav Nijnikov		The file is read only.
748d10b2a8eSStanislav Nijnikov
749d10b2a8eSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/disable_fw_update
750d10b2a8eSStanislav NijnikovDate:		February 2018
751d10b2a8eSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
752d10b2a8eSStanislav NijnikovDescription:	This file shows whether the device FW update is permanently
753d10b2a8eSStanislav Nijnikov		disabled. The full information about the flag could be found
754d10b2a8eSStanislav Nijnikov		at UFS specifications 2.1.
75554a19b4dSMauro Carvalho Chehab
756d10b2a8eSStanislav Nijnikov		The file is read only.
757ec92b59cSStanislav Nijnikov
758ec92b59cSStanislav Nijnikov
759ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/boot_lun_enabled
760ec92b59cSStanislav NijnikovDate:		February 2018
761ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
762ec92b59cSStanislav NijnikovDescription:	This file provides the boot lun enabled UFS device attribute.
763ec92b59cSStanislav Nijnikov		The full information about the attribute could be found at
764ec92b59cSStanislav Nijnikov		UFS specifications 2.1.
76554a19b4dSMauro Carvalho Chehab
766ec92b59cSStanislav Nijnikov		The file is read only.
767ec92b59cSStanislav Nijnikov
768ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/current_power_mode
769ec92b59cSStanislav NijnikovDate:		February 2018
770ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
771ec92b59cSStanislav NijnikovDescription:	This file provides the current power mode UFS device attribute.
772ec92b59cSStanislav Nijnikov		The full information about the attribute could be found at
773ec92b59cSStanislav Nijnikov		UFS specifications 2.1.
77454a19b4dSMauro Carvalho Chehab
775ec92b59cSStanislav Nijnikov		The file is read only.
776ec92b59cSStanislav Nijnikov
777ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/active_icc_level
778ec92b59cSStanislav NijnikovDate:		February 2018
779ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
780ec92b59cSStanislav NijnikovDescription:	This file provides the active icc level UFS device attribute.
781ec92b59cSStanislav Nijnikov		The full information about the attribute could be found at
782ec92b59cSStanislav Nijnikov		UFS specifications 2.1.
78354a19b4dSMauro Carvalho Chehab
784ec92b59cSStanislav Nijnikov		The file is read only.
785ec92b59cSStanislav Nijnikov
786ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/ooo_data_enabled
787ec92b59cSStanislav NijnikovDate:		February 2018
788ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
789ec92b59cSStanislav NijnikovDescription:	This file provides the out of order data transfer enabled UFS
790ec92b59cSStanislav Nijnikov		device attribute. The full information about the attribute
791ec92b59cSStanislav Nijnikov		could be found at UFS specifications 2.1.
79254a19b4dSMauro Carvalho Chehab
793ec92b59cSStanislav Nijnikov		The file is read only.
794ec92b59cSStanislav Nijnikov
795ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/bkops_status
796ec92b59cSStanislav NijnikovDate:		February 2018
797ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
798ec92b59cSStanislav NijnikovDescription:	This file provides the background operations status UFS device
799ec92b59cSStanislav Nijnikov		attribute. The full information about the attribute could
800ec92b59cSStanislav Nijnikov		be found at UFS specifications 2.1.
80154a19b4dSMauro Carvalho Chehab
802ec92b59cSStanislav Nijnikov		The file is read only.
803ec92b59cSStanislav Nijnikov
804ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/purge_status
805ec92b59cSStanislav NijnikovDate:		February 2018
806ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
807ec92b59cSStanislav NijnikovDescription:	This file provides the purge operation status UFS device
808ec92b59cSStanislav Nijnikov		attribute. The full information about the attribute could
809ec92b59cSStanislav Nijnikov		be found at UFS specifications 2.1.
81054a19b4dSMauro Carvalho Chehab
811ec92b59cSStanislav Nijnikov		The file is read only.
812ec92b59cSStanislav Nijnikov
813ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/max_data_in_size
814ec92b59cSStanislav NijnikovDate:		February 2018
815ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
816ec92b59cSStanislav NijnikovDescription:	This file shows the maximum data size in a DATA IN
817ec92b59cSStanislav Nijnikov		UPIU. The full information about the attribute could
818ec92b59cSStanislav Nijnikov		be found at UFS specifications 2.1.
81954a19b4dSMauro Carvalho Chehab
820ec92b59cSStanislav Nijnikov		The file is read only.
821ec92b59cSStanislav Nijnikov
822ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/max_data_out_size
823ec92b59cSStanislav NijnikovDate:		February 2018
824ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
825ec92b59cSStanislav NijnikovDescription:	This file shows the maximum number of bytes that can be
826ec92b59cSStanislav Nijnikov		requested with a READY TO TRANSFER UPIU. The full information
827ec92b59cSStanislav Nijnikov		about the attribute could be found at UFS specifications 2.1.
82854a19b4dSMauro Carvalho Chehab
829ec92b59cSStanislav Nijnikov		The file is read only.
830ec92b59cSStanislav Nijnikov
831ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/reference_clock_frequency
832ec92b59cSStanislav NijnikovDate:		February 2018
833ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
834ec92b59cSStanislav NijnikovDescription:	This file provides the reference clock frequency UFS device
835ec92b59cSStanislav Nijnikov		attribute. The full information about the attribute could
836ec92b59cSStanislav Nijnikov		be found at UFS specifications 2.1.
83754a19b4dSMauro Carvalho Chehab
838ec92b59cSStanislav Nijnikov		The file is read only.
839ec92b59cSStanislav Nijnikov
840ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/configuration_descriptor_lock
841ec92b59cSStanislav NijnikovDate:		February 2018
842ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
843ec92b59cSStanislav NijnikovDescription:	This file shows whether the configuration descriptor is locked.
844ec92b59cSStanislav Nijnikov		The full information about the attribute could be found at
845ec92b59cSStanislav Nijnikov		UFS specifications 2.1. The file is read only.
846ec92b59cSStanislav Nijnikov
847ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/max_number_of_rtt
848ec92b59cSStanislav NijnikovDate:		February 2018
849ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
850ec92b59cSStanislav NijnikovDescription:	This file provides the maximum current number of
851ec92b59cSStanislav Nijnikov		outstanding RTTs in device that is allowed. The full
852ec92b59cSStanislav Nijnikov		information about the attribute could be found at
853ec92b59cSStanislav Nijnikov		UFS specifications 2.1.
85454a19b4dSMauro Carvalho Chehab
855ec92b59cSStanislav Nijnikov		The file is read only.
856ec92b59cSStanislav Nijnikov
857ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/exception_event_control
858ec92b59cSStanislav NijnikovDate:		February 2018
859ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
860ec92b59cSStanislav NijnikovDescription:	This file provides the exception event control UFS device
861ec92b59cSStanislav Nijnikov		attribute. The full information about the attribute could
862ec92b59cSStanislav Nijnikov		be found at UFS specifications 2.1.
86354a19b4dSMauro Carvalho Chehab
864ec92b59cSStanislav Nijnikov		The file is read only.
865ec92b59cSStanislav Nijnikov
866ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/exception_event_status
867ec92b59cSStanislav NijnikovDate:		February 2018
868ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
869ec92b59cSStanislav NijnikovDescription:	This file provides the exception event status UFS device
870ec92b59cSStanislav Nijnikov		attribute. The full information about the attribute could
871ec92b59cSStanislav Nijnikov		be found at UFS specifications 2.1.
87254a19b4dSMauro Carvalho Chehab
873ec92b59cSStanislav Nijnikov		The file is read only.
874ec92b59cSStanislav Nijnikov
875ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/ffu_status
876ec92b59cSStanislav NijnikovDate:		February 2018
877ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
878ec92b59cSStanislav NijnikovDescription:	This file provides the ffu status UFS device attribute.
879ec92b59cSStanislav Nijnikov		The full information about the attribute could be found at
880ec92b59cSStanislav Nijnikov		UFS specifications 2.1.
88154a19b4dSMauro Carvalho Chehab
882ec92b59cSStanislav Nijnikov		The file is read only.
883ec92b59cSStanislav Nijnikov
884ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/psa_state
885ec92b59cSStanislav NijnikovDate:		February 2018
886ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
887ec92b59cSStanislav NijnikovDescription:	This file show the PSA feature status. The full information
888ec92b59cSStanislav Nijnikov		about the attribute could be found at UFS specifications 2.1.
88954a19b4dSMauro Carvalho Chehab
890ec92b59cSStanislav Nijnikov		The file is read only.
891ec92b59cSStanislav Nijnikov
892ec92b59cSStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/psa_data_size
893ec92b59cSStanislav NijnikovDate:		February 2018
894ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
895ec92b59cSStanislav NijnikovDescription:	This file shows the amount of data that the host plans to
896ec92b59cSStanislav Nijnikov		load to all logical units in pre-soldering state.
897ec92b59cSStanislav Nijnikov		The full information about the attribute could be found at
898ec92b59cSStanislav Nijnikov		UFS specifications 2.1.
89954a19b4dSMauro Carvalho Chehab
900ec92b59cSStanislav Nijnikov		The file is read only.
901ec92b59cSStanislav Nijnikov
902ec92b59cSStanislav Nijnikov
903ec92b59cSStanislav NijnikovWhat:		/sys/class/scsi_device/*/device/dyn_cap_needed
904ec92b59cSStanislav NijnikovDate:		February 2018
905ec92b59cSStanislav NijnikovContact:	Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
906*a4bcbf71SSohaib MohamedDescription:	This file shows the amount of physical memory needed
907ec92b59cSStanislav Nijnikov		to be removed from the physical memory resources pool of
908ec92b59cSStanislav Nijnikov		the particular logical unit. The full information about
909ec92b59cSStanislav Nijnikov		the attribute could be found at UFS specifications 2.1.
91054a19b4dSMauro Carvalho Chehab
911ec92b59cSStanislav Nijnikov		The file is read only.
912114c1aa2SStanislav Nijnikov
913114c1aa2SStanislav Nijnikov
914114c1aa2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/rpm_lvl
915114c1aa2SStanislav NijnikovDate:		September 2014
916114c1aa2SStanislav NijnikovContact:	Subhash Jadavani <subhashj@codeaurora.org>
917114c1aa2SStanislav NijnikovDescription:	This entry could be used to set or show the UFS device
918114c1aa2SStanislav Nijnikov		runtime power management level. The current driver
9190b2894cdSAdrian Hunter		implementation supports 7 levels with next target states:
92054a19b4dSMauro Carvalho Chehab
92154a19b4dSMauro Carvalho Chehab		==  ====================================================
9220b2894cdSAdrian Hunter		0   UFS device will stay active, UIC link will
923114c1aa2SStanislav Nijnikov		    stay active
9240b2894cdSAdrian Hunter		1   UFS device will stay active, UIC link will
925114c1aa2SStanislav Nijnikov		    hibernate
9260b2894cdSAdrian Hunter		2   UFS device will be moved to sleep, UIC link will
927114c1aa2SStanislav Nijnikov		    stay active
9280b2894cdSAdrian Hunter		3   UFS device will be moved to sleep, UIC link will
929114c1aa2SStanislav Nijnikov		    hibernate
9300b2894cdSAdrian Hunter		4   UFS device will be powered off, UIC link will
931114c1aa2SStanislav Nijnikov		    hibernate
9320b2894cdSAdrian Hunter		5   UFS device will be powered off, UIC link will
933114c1aa2SStanislav Nijnikov		    be powered off
9340b2894cdSAdrian Hunter		6   UFS device will be moved to deep sleep, UIC link
9350b2894cdSAdrian Hunter		    will be powered off. Note, deep sleep might not be
936f2cb4b23SLukas Bulwahn		    supported in which case this value will not be
937f2cb4b23SLukas Bulwahn		    accepted
93854a19b4dSMauro Carvalho Chehab		==  ====================================================
939114c1aa2SStanislav Nijnikov
940114c1aa2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/rpm_target_dev_state
941114c1aa2SStanislav NijnikovDate:		February 2018
942114c1aa2SStanislav NijnikovContact:	Subhash Jadavani <subhashj@codeaurora.org>
943114c1aa2SStanislav NijnikovDescription:	This entry shows the target power mode of an UFS device
944114c1aa2SStanislav Nijnikov		for the chosen runtime power management level.
94554a19b4dSMauro Carvalho Chehab
946114c1aa2SStanislav Nijnikov		The file is read only.
947114c1aa2SStanislav Nijnikov
948114c1aa2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/rpm_target_link_state
949114c1aa2SStanislav NijnikovDate:		February 2018
950114c1aa2SStanislav NijnikovContact:	Subhash Jadavani <subhashj@codeaurora.org>
951114c1aa2SStanislav NijnikovDescription:	This entry shows the target state of an UFS UIC link
952114c1aa2SStanislav Nijnikov		for the chosen runtime power management level.
95354a19b4dSMauro Carvalho Chehab
954114c1aa2SStanislav Nijnikov		The file is read only.
955114c1aa2SStanislav Nijnikov
956114c1aa2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/spm_lvl
957114c1aa2SStanislav NijnikovDate:		September 2014
958114c1aa2SStanislav NijnikovContact:	Subhash Jadavani <subhashj@codeaurora.org>
959114c1aa2SStanislav NijnikovDescription:	This entry could be used to set or show the UFS device
960114c1aa2SStanislav Nijnikov		system power management level. The current driver
9610b2894cdSAdrian Hunter		implementation supports 7 levels with next target states:
96254a19b4dSMauro Carvalho Chehab
96354a19b4dSMauro Carvalho Chehab		==  ====================================================
9640b2894cdSAdrian Hunter		0   UFS device will stay active, UIC link will
965114c1aa2SStanislav Nijnikov		    stay active
9660b2894cdSAdrian Hunter		1   UFS device will stay active, UIC link will
967114c1aa2SStanislav Nijnikov		    hibernate
9680b2894cdSAdrian Hunter		2   UFS device will be moved to sleep, UIC link will
969114c1aa2SStanislav Nijnikov		    stay active
9700b2894cdSAdrian Hunter		3   UFS device will be moved to sleep, UIC link will
971114c1aa2SStanislav Nijnikov		    hibernate
9720b2894cdSAdrian Hunter		4   UFS device will be powered off, UIC link will
973114c1aa2SStanislav Nijnikov		    hibernate
9740b2894cdSAdrian Hunter		5   UFS device will be powered off, UIC link will
975114c1aa2SStanislav Nijnikov		    be powered off
9760b2894cdSAdrian Hunter		6   UFS device will be moved to deep sleep, UIC link
9770b2894cdSAdrian Hunter		    will be powered off. Note, deep sleep might not be
978f2cb4b23SLukas Bulwahn		    supported in which case this value will not be
979f2cb4b23SLukas Bulwahn		    accepted
98054a19b4dSMauro Carvalho Chehab		==  ====================================================
981114c1aa2SStanislav Nijnikov
982114c1aa2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/spm_target_dev_state
983114c1aa2SStanislav NijnikovDate:		February 2018
984114c1aa2SStanislav NijnikovContact:	Subhash Jadavani <subhashj@codeaurora.org>
985114c1aa2SStanislav NijnikovDescription:	This entry shows the target power mode of an UFS device
986114c1aa2SStanislav Nijnikov		for the chosen system power management level.
98754a19b4dSMauro Carvalho Chehab
988114c1aa2SStanislav Nijnikov		The file is read only.
989114c1aa2SStanislav Nijnikov
990114c1aa2SStanislav NijnikovWhat:		/sys/bus/platform/drivers/ufshcd/*/spm_target_link_state
991114c1aa2SStanislav NijnikovDate:		February 2018
992114c1aa2SStanislav NijnikovContact:	Subhash Jadavani <subhashj@codeaurora.org>
993114c1aa2SStanislav NijnikovDescription:	This entry shows the target state of an UFS UIC link
994114c1aa2SStanislav Nijnikov		for the chosen system power management level.
99554a19b4dSMauro Carvalho Chehab
996114c1aa2SStanislav Nijnikov		The file is read only.
997f51853fcSAsutosh Das
9981d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/monitor_enable
9991d8613a2SCan GuoDate:		January 2021
10001d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10011d8613a2SCan GuoDescription:	This file shows the status of performance monitor enablement
10021d8613a2SCan Guo		and it can be used to start/stop the monitor. When the monitor
10031d8613a2SCan Guo		is stopped, the performance data collected is also cleared.
10041d8613a2SCan Guo
10051d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/monitor_chunk_size
10061d8613a2SCan GuoDate:		January 2021
10071d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10081d8613a2SCan GuoDescription:	This file tells the monitor to focus on requests transferring
10091d8613a2SCan Guo		data of specific chunk size (in Bytes). 0 means any chunk size.
10101d8613a2SCan Guo		It can only be changed when monitor is disabled.
10111d8613a2SCan Guo
10121d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_total_sectors
10131d8613a2SCan GuoDate:		January 2021
10141d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10151d8613a2SCan GuoDescription:	This file shows how many sectors (in 512 Bytes) have been
10161d8613a2SCan Guo		sent from device to host after monitor gets started.
10171d8613a2SCan Guo
10181d8613a2SCan Guo		The file is read only.
10191d8613a2SCan Guo
10201d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_total_busy
10211d8613a2SCan GuoDate:		January 2021
10221d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10231d8613a2SCan GuoDescription:	This file shows how long (in micro seconds) has been spent
10241d8613a2SCan Guo		sending data from device to host after monitor gets started.
10251d8613a2SCan Guo
10261d8613a2SCan Guo		The file is read only.
10271d8613a2SCan Guo
10281d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_nr_requests
10291d8613a2SCan GuoDate:		January 2021
10301d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10311d8613a2SCan GuoDescription:	This file shows how many read requests have been sent after
10321d8613a2SCan Guo		monitor gets started.
10331d8613a2SCan Guo
10341d8613a2SCan Guo		The file is read only.
10351d8613a2SCan Guo
10361d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_max
10371d8613a2SCan GuoDate:		January 2021
10381d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10391d8613a2SCan GuoDescription:	This file shows the maximum latency (in micro seconds) of
10401d8613a2SCan Guo		read requests after monitor gets started.
10411d8613a2SCan Guo
10421d8613a2SCan Guo		The file is read only.
10431d8613a2SCan Guo
10441d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_min
10451d8613a2SCan GuoDate:		January 2021
10461d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10471d8613a2SCan GuoDescription:	This file shows the minimum latency (in micro seconds) of
10481d8613a2SCan Guo		read requests after monitor gets started.
10491d8613a2SCan Guo
10501d8613a2SCan Guo		The file is read only.
10511d8613a2SCan Guo
10521d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_avg
10531d8613a2SCan GuoDate:		January 2021
10541d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10551d8613a2SCan GuoDescription:	This file shows the average latency (in micro seconds) of
10561d8613a2SCan Guo		read requests after monitor gets started.
10571d8613a2SCan Guo
10581d8613a2SCan Guo		The file is read only.
10591d8613a2SCan Guo
10601d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_sum
10611d8613a2SCan GuoDate:		January 2021
10621d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10631d8613a2SCan GuoDescription:	This file shows the total latency (in micro seconds) of
10641d8613a2SCan Guo		read requests sent after monitor gets started.
10651d8613a2SCan Guo
10661d8613a2SCan Guo		The file is read only.
10671d8613a2SCan Guo
10681d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_total_sectors
10691d8613a2SCan GuoDate:		January 2021
10701d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10711d8613a2SCan GuoDescription:	This file shows how many sectors (in 512 Bytes) have been sent
10721d8613a2SCan Guo		from host to device after monitor gets started.
10731d8613a2SCan Guo
10741d8613a2SCan Guo		The file is read only.
10751d8613a2SCan Guo
10761d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_total_busy
10771d8613a2SCan GuoDate:		January 2021
10781d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10791d8613a2SCan GuoDescription:	This file shows how long (in micro seconds) has been spent
10801d8613a2SCan Guo		sending data from host to device after monitor gets started.
10811d8613a2SCan Guo
10821d8613a2SCan Guo		The file is read only.
10831d8613a2SCan Guo
10841d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_nr_requests
10851d8613a2SCan GuoDate:		January 2021
10861d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10871d8613a2SCan GuoDescription:	This file shows how many write requests have been sent after
10881d8613a2SCan Guo		monitor gets started.
10891d8613a2SCan Guo
10901d8613a2SCan Guo		The file is read only.
10911d8613a2SCan Guo
10921d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_max
10931d8613a2SCan GuoDate:		January 2021
10941d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
10951d8613a2SCan GuoDescription:	This file shows the maximum latency (in micro seconds) of write
10961d8613a2SCan Guo		requests after monitor gets started.
10971d8613a2SCan Guo
10981d8613a2SCan Guo		The file is read only.
10991d8613a2SCan Guo
11001d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_min
11011d8613a2SCan GuoDate:		January 2021
11021d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
11031d8613a2SCan GuoDescription:	This file shows the minimum latency (in micro seconds) of write
11041d8613a2SCan Guo		requests after monitor gets started.
11051d8613a2SCan Guo
11061d8613a2SCan Guo		The file is read only.
11071d8613a2SCan Guo
11081d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_avg
11091d8613a2SCan GuoDate:		January 2021
11101d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
11111d8613a2SCan GuoDescription:	This file shows the average latency (in micro seconds) of write
11121d8613a2SCan Guo		requests after monitor gets started.
11131d8613a2SCan Guo
11141d8613a2SCan Guo		The file is read only.
11151d8613a2SCan Guo
11161d8613a2SCan GuoWhat:		/sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_sum
11171d8613a2SCan GuoDate:		January 2021
11181d8613a2SCan GuoContact:	Can Guo <cang@codeaurora.org>
11191d8613a2SCan GuoDescription:	This file shows the total latency (in micro seconds) of write
11201d8613a2SCan Guo		requests after monitor gets started.
11211d8613a2SCan Guo
11221d8613a2SCan Guo		The file is read only.
11231d8613a2SCan Guo
1124f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_presv_us_en
1125f51853fcSAsutosh DasDate:		June 2020
1126f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1127f51853fcSAsutosh DasDescription:	This entry shows if preserve user-space was configured
112854a19b4dSMauro Carvalho Chehab
1129f51853fcSAsutosh Das		The file is read only.
1130f51853fcSAsutosh Das
1131f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_shared_alloc_units
1132f51853fcSAsutosh DasDate:		June 2020
1133f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1134f51853fcSAsutosh DasDescription:	This entry shows the shared allocated units of WB buffer
113554a19b4dSMauro Carvalho Chehab
1136f51853fcSAsutosh Das		The file is read only.
1137f51853fcSAsutosh Das
1138f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_type
1139f51853fcSAsutosh DasDate:		June 2020
1140f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1141f51853fcSAsutosh DasDescription:	This entry shows the configured WB type.
1142f51853fcSAsutosh Das		0x1 for shared buffer mode. 0x0 for dedicated buffer mode.
114354a19b4dSMauro Carvalho Chehab
1144f51853fcSAsutosh Das		The file is read only.
1145f51853fcSAsutosh Das
1146f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_buff_cap_adj
1147f51853fcSAsutosh DasDate:		June 2020
1148f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1149f51853fcSAsutosh DasDescription:	This entry shows the total user-space decrease in shared
1150f51853fcSAsutosh Das		buffer mode.
1151f51853fcSAsutosh Das		The value of this parameter is 3 for TLC NAND when SLC mode
1152f51853fcSAsutosh Das		is used as WriteBooster Buffer. 2 for MLC NAND.
115354a19b4dSMauro Carvalho Chehab
1154f51853fcSAsutosh Das		The file is read only.
1155f51853fcSAsutosh Das
1156f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_max_alloc_units
1157f51853fcSAsutosh DasDate:		June 2020
1158f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1159f51853fcSAsutosh DasDescription:	This entry shows the Maximum total WriteBooster Buffer size
1160f51853fcSAsutosh Das		which is supported by the entire device.
116154a19b4dSMauro Carvalho Chehab
1162f51853fcSAsutosh Das		The file is read only.
1163f51853fcSAsutosh Das
1164f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_max_wb_luns
1165f51853fcSAsutosh DasDate:		June 2020
1166f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1167f51853fcSAsutosh DasDescription:	This entry shows the maximum number of luns that can support
1168f51853fcSAsutosh Das		WriteBooster.
116954a19b4dSMauro Carvalho Chehab
1170f51853fcSAsutosh Das		The file is read only.
1171f51853fcSAsutosh Das
1172f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_sup_red_type
1173f51853fcSAsutosh DasDate:		June 2020
1174f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1175f51853fcSAsutosh DasDescription:	The supportability of user space reduction mode
1176f51853fcSAsutosh Das		and preserve user space mode.
1177f51853fcSAsutosh Das		00h: WriteBooster Buffer can be configured only in
1178f51853fcSAsutosh Das		user space reduction type.
1179f51853fcSAsutosh Das		01h: WriteBooster Buffer can be configured only in
1180f51853fcSAsutosh Das		preserve user space type.
1181f51853fcSAsutosh Das		02h: Device can be configured in either user space
1182f51853fcSAsutosh Das		reduction type or preserve user space type.
118354a19b4dSMauro Carvalho Chehab
1184f51853fcSAsutosh Das		The file is read only.
1185f51853fcSAsutosh Das
1186f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_sup_wb_type
1187f51853fcSAsutosh DasDate:		June 2020
1188f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1189f51853fcSAsutosh DasDescription:	The supportability of WriteBooster Buffer type.
119054a19b4dSMauro Carvalho Chehab
119154a19b4dSMauro Carvalho Chehab		===  ==========================================================
119254a19b4dSMauro Carvalho Chehab		00h  LU based WriteBooster Buffer configuration
119354a19b4dSMauro Carvalho Chehab		01h  Single shared WriteBooster Buffer configuration
119454a19b4dSMauro Carvalho Chehab		02h  Supporting both LU based WriteBooster.
119554a19b4dSMauro Carvalho Chehab		     Buffer and Single shared WriteBooster Buffer configuration
119654a19b4dSMauro Carvalho Chehab		===  ==========================================================
119754a19b4dSMauro Carvalho Chehab
1198f51853fcSAsutosh Das		The file is read only.
1199f51853fcSAsutosh Das
1200f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/wb_enable
1201f51853fcSAsutosh DasDate:		June 2020
1202f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1203f51853fcSAsutosh DasDescription:	This entry shows the status of WriteBooster.
120454a19b4dSMauro Carvalho Chehab
120554a19b4dSMauro Carvalho Chehab		== ============================
120654a19b4dSMauro Carvalho Chehab		0  WriteBooster is not enabled.
120754a19b4dSMauro Carvalho Chehab		1  WriteBooster is enabled
120854a19b4dSMauro Carvalho Chehab		== ============================
120954a19b4dSMauro Carvalho Chehab
1210f51853fcSAsutosh Das		The file is read only.
1211f51853fcSAsutosh Das
1212f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/wb_flush_en
1213f51853fcSAsutosh DasDate:		June 2020
1214f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1215f51853fcSAsutosh DasDescription:	This entry shows if flush is enabled.
121654a19b4dSMauro Carvalho Chehab
121754a19b4dSMauro Carvalho Chehab		== =================================
121854a19b4dSMauro Carvalho Chehab		0  Flush operation is not performed.
121954a19b4dSMauro Carvalho Chehab		1  Flush operation is performed.
122054a19b4dSMauro Carvalho Chehab		== =================================
122154a19b4dSMauro Carvalho Chehab
1222f51853fcSAsutosh Das		The file is read only.
1223f51853fcSAsutosh Das
1224f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/wb_flush_during_h8
1225f51853fcSAsutosh DasDate:		June 2020
1226f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1227f51853fcSAsutosh DasDescription:	Flush WriteBooster Buffer during hibernate state.
122854a19b4dSMauro Carvalho Chehab
122954a19b4dSMauro Carvalho Chehab		== =================================================
123054a19b4dSMauro Carvalho Chehab		0  Device is not allowed to flush the
123154a19b4dSMauro Carvalho Chehab		   WriteBooster Buffer during link hibernate state.
123254a19b4dSMauro Carvalho Chehab		1  Device is allowed to flush the
123354a19b4dSMauro Carvalho Chehab		   WriteBooster Buffer during link hibernate state.
123454a19b4dSMauro Carvalho Chehab		== =================================================
123554a19b4dSMauro Carvalho Chehab
1236f51853fcSAsutosh Das		The file is read only.
1237f51853fcSAsutosh Das
1238f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_avail_buf
1239f51853fcSAsutosh DasDate:		June 2020
1240f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1241f51853fcSAsutosh DasDescription:	This entry shows the amount of unused WriteBooster buffer
1242f51853fcSAsutosh Das		available.
124354a19b4dSMauro Carvalho Chehab
1244f51853fcSAsutosh Das		The file is read only.
1245f51853fcSAsutosh Das
1246f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_cur_buf
1247f51853fcSAsutosh DasDate:		June 2020
1248f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1249f51853fcSAsutosh DasDescription:	This entry shows the amount of unused current buffer.
125054a19b4dSMauro Carvalho Chehab
1251f51853fcSAsutosh Das		The file is read only.
1252f51853fcSAsutosh Das
1253f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_flush_status
1254f51853fcSAsutosh DasDate:		June 2020
1255f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1256f51853fcSAsutosh DasDescription:	This entry shows the flush operation status.
125754a19b4dSMauro Carvalho Chehab
125854a19b4dSMauro Carvalho Chehab
125954a19b4dSMauro Carvalho Chehab		===  ======================================
126054a19b4dSMauro Carvalho Chehab		00h  idle
126154a19b4dSMauro Carvalho Chehab		01h  Flush operation in progress
126254a19b4dSMauro Carvalho Chehab		02h  Flush operation stopped prematurely.
126354a19b4dSMauro Carvalho Chehab		03h  Flush operation completed successfully
126454a19b4dSMauro Carvalho Chehab		04h  Flush operation general failure
126554a19b4dSMauro Carvalho Chehab		===  ======================================
126654a19b4dSMauro Carvalho Chehab
1267f51853fcSAsutosh Das		The file is read only.
1268f51853fcSAsutosh Das
1269f51853fcSAsutosh DasWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/wb_life_time_est
1270f51853fcSAsutosh DasDate:		June 2020
1271f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1272f51853fcSAsutosh DasDescription:	This entry shows an indication of the WriteBooster Buffer
1273f51853fcSAsutosh Das		lifetime based on the amount of performed program/erase cycles
127454a19b4dSMauro Carvalho Chehab
127554a19b4dSMauro Carvalho Chehab		===  =============================================
127654a19b4dSMauro Carvalho Chehab		01h  0% - 10% WriteBooster Buffer life time used
1277f51853fcSAsutosh Das		...
127854a19b4dSMauro Carvalho Chehab		0Ah  90% - 100% WriteBooster Buffer life time used
127954a19b4dSMauro Carvalho Chehab		===  =============================================
128054a19b4dSMauro Carvalho Chehab
1281f51853fcSAsutosh Das		The file is read only.
1282f51853fcSAsutosh Das
1283f51853fcSAsutosh DasWhat:		/sys/class/scsi_device/*/device/unit_descriptor/wb_buf_alloc_units
1284f51853fcSAsutosh DasDate:		June 2020
1285f51853fcSAsutosh DasContact:	Asutosh Das <asutoshd@codeaurora.org>
1286f51853fcSAsutosh DasDescription:	This entry shows the configured size of WriteBooster buffer.
1287f51853fcSAsutosh Das		0400h corresponds to 4GB.
128854a19b4dSMauro Carvalho Chehab
1289f51853fcSAsutosh Das		The file is read only.
129006aea266SBean Huo
129106aea266SBean HuoWhat:		/sys/bus/platform/drivers/ufshcd/*/wb_on
129206aea266SBean HuoDate:		January 2021
129306aea266SBean HuoContact:	Bean Huo <beanhuo@micron.com>
129406aea266SBean HuoDescription:	This node is used to set or display whether UFS WriteBooster is
129506aea266SBean Huo		enabled. Echo 0 to this file to disable UFS WriteBooster or 1 to
129606aea266SBean Huo		enable it. The WriteBooster is enabled after power-on/reset,
129706aea266SBean Huo		however, it will be disabled/enable while CLK scaling down/up
129806aea266SBean Huo		(if the platform supports UFSHCD_CAP_CLK_SCALING). For a
129906aea266SBean Huo		platform that doesn't support UFSHCD_CAP_CLK_SCALING, we can
130006aea266SBean Huo		disable/enable WriteBooster through this sysfs node.
1301f02bc975SDaejun Park
1302f02bc975SDaejun ParkWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_version
1303f02bc975SDaejun ParkDate:		June 2021
1304f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1305f02bc975SDaejun ParkDescription:	This entry shows the HPB specification version.
1306f02bc975SDaejun Park		The full information about the descriptor can be found in the UFS
1307f02bc975SDaejun Park		HPB (Host Performance Booster) Extension specifications.
1308f02bc975SDaejun Park		Example: version 1.2.3 = 0123h
1309f02bc975SDaejun Park
1310f02bc975SDaejun Park		The file is read only.
1311f02bc975SDaejun Park
1312f02bc975SDaejun ParkWhat:		/sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_control
1313f02bc975SDaejun ParkDate:		June 2021
1314f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1315f02bc975SDaejun ParkDescription:	This entry shows an indication of the HPB control mode.
1316f02bc975SDaejun Park		00h: Host control mode
1317f02bc975SDaejun Park		01h: Device control mode
1318f02bc975SDaejun Park
1319f02bc975SDaejun Park		The file is read only.
1320f02bc975SDaejun Park
1321f02bc975SDaejun ParkWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_region_size
1322f02bc975SDaejun ParkDate:		June 2021
1323f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1324f02bc975SDaejun ParkDescription:	This entry shows the bHPBRegionSize which can be calculated
1325f02bc975SDaejun Park		as in the following (in bytes):
1326f02bc975SDaejun Park		HPB Region size = 512B * 2^bHPBRegionSize
1327f02bc975SDaejun Park
1328f02bc975SDaejun Park		The file is read only.
1329f02bc975SDaejun Park
1330f02bc975SDaejun ParkWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_number_lu
1331f02bc975SDaejun ParkDate:		June 2021
1332f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1333f02bc975SDaejun ParkDescription:	This entry shows the maximum number of HPB LU supported	by
1334f02bc975SDaejun Park		the device.
1335f02bc975SDaejun Park		00h: HPB is not supported by the device.
1336f02bc975SDaejun Park		01h ~ 20h: Maximum number of HPB LU supported by the device
1337f02bc975SDaejun Park
1338f02bc975SDaejun Park		The file is read only.
1339f02bc975SDaejun Park
1340f02bc975SDaejun ParkWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_subregion_size
1341f02bc975SDaejun ParkDate:		June 2021
1342f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1343f02bc975SDaejun ParkDescription:	This entry shows the bHPBSubRegionSize, which can be
1344f02bc975SDaejun Park		calculated as in the following (in bytes) and shall be a multiple of
1345f02bc975SDaejun Park		logical block size:
1346f02bc975SDaejun Park		HPB Sub-Region size = 512B x 2^bHPBSubRegionSize
1347f02bc975SDaejun Park		bHPBSubRegionSize shall not exceed bHPBRegionSize.
1348f02bc975SDaejun Park
1349f02bc975SDaejun Park		The file is read only.
1350f02bc975SDaejun Park
1351f02bc975SDaejun ParkWhat:		/sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_max_active_regions
1352f02bc975SDaejun ParkDate:		June 2021
1353f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1354f02bc975SDaejun ParkDescription:	This entry shows the maximum number of active HPB regions that
1355f02bc975SDaejun Park		is supported by the device.
1356f02bc975SDaejun Park
1357f02bc975SDaejun Park		The file is read only.
1358f02bc975SDaejun Park
1359f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/unit_descriptor/hpb_lu_max_active_regions
1360f02bc975SDaejun ParkDate:		June 2021
1361f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1362f02bc975SDaejun ParkDescription:	This entry shows the maximum number of HPB regions assigned to
1363f02bc975SDaejun Park		the HPB logical unit.
1364f02bc975SDaejun Park
1365f02bc975SDaejun Park		The file is read only.
1366f02bc975SDaejun Park
1367f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/unit_descriptor/hpb_pinned_region_start_offset
1368f02bc975SDaejun ParkDate:		June 2021
1369f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1370f02bc975SDaejun ParkDescription:	This entry shows the start offset of HPB pinned region.
1371f02bc975SDaejun Park
1372f02bc975SDaejun Park		The file is read only.
1373f02bc975SDaejun Park
1374f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/unit_descriptor/hpb_number_pinned_regions
1375f02bc975SDaejun ParkDate:		June 2021
1376f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1377f02bc975SDaejun ParkDescription:	This entry shows the number of HPB pinned regions assigned to
1378f02bc975SDaejun Park		the HPB logical unit.
1379f02bc975SDaejun Park
1380f02bc975SDaejun Park		The file is read only.
1381f02bc975SDaejun Park
1382f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/hpb_stats/hit_cnt
1383f02bc975SDaejun ParkDate:		June 2021
1384f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1385f02bc975SDaejun ParkDescription:	This entry shows the number of reads that changed to HPB read.
1386f02bc975SDaejun Park
1387f02bc975SDaejun Park		The file is read only.
1388f02bc975SDaejun Park
1389f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/hpb_stats/miss_cnt
1390f02bc975SDaejun ParkDate:		June 2021
1391f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1392f02bc975SDaejun ParkDescription:	This entry shows the number of reads that cannot be changed to
1393f02bc975SDaejun Park		HPB read.
1394f02bc975SDaejun Park
1395f02bc975SDaejun Park		The file is read only.
1396f02bc975SDaejun Park
1397f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/hpb_stats/rb_noti_cnt
1398f02bc975SDaejun ParkDate:		June 2021
1399f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1400f02bc975SDaejun ParkDescription:	This entry shows the number of response UPIUs that has
1401f02bc975SDaejun Park		recommendations for activating sub-regions and/or inactivating region.
1402f02bc975SDaejun Park
1403f02bc975SDaejun Park		The file is read only.
1404f02bc975SDaejun Park
1405f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/hpb_stats/rb_active_cnt
1406f02bc975SDaejun ParkDate:		June 2021
1407f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1408f02bc975SDaejun ParkDescription:	This entry shows the number of active sub-regions recommended by
1409f02bc975SDaejun Park		response UPIUs.
1410f02bc975SDaejun Park
1411f02bc975SDaejun Park		The file is read only.
1412f02bc975SDaejun Park
1413f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/hpb_stats/rb_inactive_cnt
1414f02bc975SDaejun ParkDate:		June 2021
1415f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1416f02bc975SDaejun ParkDescription:	This entry shows the number of inactive regions recommended by
1417f02bc975SDaejun Park		response UPIUs.
1418f02bc975SDaejun Park
1419f02bc975SDaejun Park		The file is read only.
1420f02bc975SDaejun Park
1421f02bc975SDaejun ParkWhat:		/sys/class/scsi_device/*/device/hpb_stats/map_req_cnt
1422f02bc975SDaejun ParkDate:		June 2021
1423f02bc975SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
1424f02bc975SDaejun ParkDescription:	This entry shows the number of read buffer commands for
1425f02bc975SDaejun Park		activating sub-regions recommended by response UPIUs.
1426f02bc975SDaejun Park
1427f02bc975SDaejun Park		The file is read only.
142841d8a933SDaejun Park
142941d8a933SDaejun ParkWhat:		/sys/class/scsi_device/*/device/hpb_params/requeue_timeout_ms
143041d8a933SDaejun ParkDate:		June 2021
143141d8a933SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
143241d8a933SDaejun ParkDescription:	This entry shows the requeue timeout threshold for write buffer
143341d8a933SDaejun Park		command in ms. The value can be changed by writing an integer to
143441d8a933SDaejun Park		this entry.
143541d8a933SDaejun Park
143641d8a933SDaejun ParkWhat:		/sys/bus/platform/drivers/ufshcd/*/attributes/max_data_size_hpb_single_cmd
143741d8a933SDaejun ParkDate:		June 2021
143841d8a933SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
143941d8a933SDaejun ParkDescription:	This entry shows the maximum HPB data size for using a single HPB
144041d8a933SDaejun Park		command.
144141d8a933SDaejun Park
144241d8a933SDaejun Park		===  ========
144341d8a933SDaejun Park		00h  4KB
144441d8a933SDaejun Park		01h  8KB
144541d8a933SDaejun Park		02h  12KB
144641d8a933SDaejun Park		...
144741d8a933SDaejun Park		FFh  1024KB
144841d8a933SDaejun Park		===  ========
144941d8a933SDaejun Park
145041d8a933SDaejun Park		The file is read only.
145141d8a933SDaejun Park
1452f95f59a2SAvri AltmanWhat:		/sys/bus/platform/drivers/ufshcd/*/flags/hpb_enable
145341d8a933SDaejun ParkDate:		June 2021
145441d8a933SDaejun ParkContact:	Daejun Park <daejun7.park@samsung.com>
145541d8a933SDaejun ParkDescription:	This entry shows the status of HPB.
145641d8a933SDaejun Park
145741d8a933SDaejun Park		== ============================
145841d8a933SDaejun Park		0  HPB is not enabled.
145941d8a933SDaejun Park		1  HPB is enabled
146041d8a933SDaejun Park		== ============================
146141d8a933SDaejun Park
146241d8a933SDaejun Park		The file is read only.
1463f95f59a2SAvri Altman
1464f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/activation_thld
1465f95f59a2SAvri AltmanDate:		February 2021
1466f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1467f95f59a2SAvri AltmanDescription:	In host control mode, reads are the major source of activation
1468f95f59a2SAvri Altman		trials.  Once this threshold hs met, the region is added to the
1469f95f59a2SAvri Altman		"to-be-activated" list.  Since we reset the read counter upon
1470f95f59a2SAvri Altman		write, this include sending a rb command updating the region
1471f95f59a2SAvri Altman		ppn as well.
1472f95f59a2SAvri Altman
1473f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/normalization_factor
1474f95f59a2SAvri AltmanDate:		February 2021
1475f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1476f95f59a2SAvri AltmanDescription:	In host control mode, we think of the regions as "buckets".
1477f95f59a2SAvri Altman		Those buckets are being filled with reads, and emptied on write.
1478f95f59a2SAvri Altman		We use entries_per_srgn - the amount of blocks in a subregion as
1479f95f59a2SAvri Altman		our bucket size.  This applies because HPB1.0 only handles
1480f95f59a2SAvri Altman		single-block reads.  Once the bucket size is crossed, we trigger
1481f95f59a2SAvri Altman		a normalization work - not only to avoid overflow, but mainly
1482f95f59a2SAvri Altman		because we want to keep those counters normalized, as we are
1483f95f59a2SAvri Altman		using those reads as a comparative score, to make various decisions.
1484f95f59a2SAvri Altman		The normalization is dividing (shift right) the read counter by
1485f95f59a2SAvri Altman		the normalization_factor. If during consecutive normalizations
1486f95f59a2SAvri Altman		an active region has exhausted its reads - inactivate it.
1487f95f59a2SAvri Altman
1488f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_enter
1489f95f59a2SAvri AltmanDate:		February 2021
1490f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1491f95f59a2SAvri AltmanDescription:	Region deactivation is often due to the fact that eviction took
1492f95f59a2SAvri Altman		place: A region becomes active at the expense of another. This is
1493f95f59a2SAvri Altman		happening when the max-active-regions limit has been crossed.
1494f95f59a2SAvri Altman		In host mode, eviction is considered an extreme measure. We
1495f95f59a2SAvri Altman		want to verify that the entering region has enough reads, and
1496f95f59a2SAvri Altman		the exiting region has much fewer reads.  eviction_thld_enter is
1497f95f59a2SAvri Altman		the min reads that a region must have in order to be considered
1498f95f59a2SAvri Altman		a candidate for evicting another region.
1499f95f59a2SAvri Altman
1500f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_exit
1501f95f59a2SAvri AltmanDate:		February 2021
1502f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1503f95f59a2SAvri AltmanDescription:	Same as above for the exiting region. A region is considered to
1504f95f59a2SAvri Altman		be a candidate for eviction only if it has fewer reads than
1505f95f59a2SAvri Altman		eviction_thld_exit.
1506f95f59a2SAvri Altman
1507f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_ms
1508f95f59a2SAvri AltmanDate:		February 2021
1509f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1510f95f59a2SAvri AltmanDescription:	In order not to hang on to "cold" regions, we inactivate
1511f95f59a2SAvri Altman		a region that has no READ access for a predefined amount of
1512f95f59a2SAvri Altman		time - read_timeout_ms. If read_timeout_ms has expired, and the
1513f95f59a2SAvri Altman		region is dirty, it is less likely that we can make any use of
1514f95f59a2SAvri Altman		HPB reading it so we inactivate it.  Still, deactivation has
1515f95f59a2SAvri Altman		its overhead, and we may still benefit from HPB reading this
1516f95f59a2SAvri Altman		region if it is clean - see read_timeout_expiries.
1517f95f59a2SAvri Altman
1518f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_expiries
1519f95f59a2SAvri AltmanDate:		February 2021
1520f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1521f95f59a2SAvri AltmanDescription:	If the region read timeout has expired, but the region is clean,
1522f95f59a2SAvri Altman		just re-wind its timer for another spin.  Do that as long as it
1523f95f59a2SAvri Altman		is clean and did not exhaust its read_timeout_expiries threshold.
1524f95f59a2SAvri Altman
1525f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/timeout_polling_interval_ms
1526f95f59a2SAvri AltmanDate:		February 2021
1527f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1528f95f59a2SAvri AltmanDescription:	The frequency with which the delayed worker that checks the
1529f95f59a2SAvri Altman		read_timeouts is awakened.
1530f95f59a2SAvri Altman
1531f95f59a2SAvri AltmanWhat:		/sys/class/scsi_device/*/device/hpb_param_sysfs/inflight_map_req
1532f95f59a2SAvri AltmanDate:		February 2021
1533f95f59a2SAvri AltmanContact:	Avri Altman <avri.altman@wdc.com>
1534f95f59a2SAvri AltmanDescription:	In host control mode the host is the originator of map requests.
1535f95f59a2SAvri Altman		To avoid flooding the device with map requests, use a simple throttling
1536f95f59a2SAvri Altman		mechanism that limits the number of inflight map requests.
1537