sysfs-driver-ufs 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712
  1. What: /sys/bus/*/drivers/ufshcd/*/auto_hibern8
  2. Date: March 2018
  3. Contact: [email protected]
  4. Description:
  5. This file contains the auto-hibernate idle timer setting of a
  6. UFS host controller. A value of '0' means auto-hibernate is not
  7. enabled. Otherwise the value is the number of microseconds of
  8. idle time before the UFS host controller will autonomously put
  9. the link into hibernate state. That will save power at the
  10. expense of increased latency. Note that the hardware supports
  11. 10-bit values with a power-of-ten multiplier which allows a
  12. maximum value of 102300000. Refer to the UFS Host Controller
  13. Interface specification for more details.
  14. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_type
  15. What: /sys/bus/platform/devices/*.ufs/device_descriptor/device_type
  16. Date: February 2018
  17. Contact: Stanislav Nijnikov <[email protected]>
  18. Description: This file shows the device type. This is one of the UFS
  19. device descriptor parameters. The full information about
  20. the descriptor could be found at UFS specifications 2.1.
  21. The file is read only.
  22. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_class
  23. What: /sys/bus/platform/devices/*.ufs/device_descriptor/device_class
  24. Date: February 2018
  25. Contact: Stanislav Nijnikov <[email protected]>
  26. Description: This file shows the device class. This is one of the UFS
  27. device descriptor parameters. The full information about
  28. the descriptor could be found at UFS specifications 2.1.
  29. The file is read only.
  30. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_sub_class
  31. What: /sys/bus/platform/devices/*.ufs/device_descriptor/device_sub_class
  32. Date: February 2018
  33. Contact: Stanislav Nijnikov <[email protected]>
  34. Description: This file shows the UFS storage subclass. This is one of
  35. the UFS device descriptor parameters. The full information
  36. about the descriptor could be found at UFS specifications 2.1.
  37. The file is read only.
  38. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/protocol
  39. What: /sys/bus/platform/devices/*.ufs/device_descriptor/protocol
  40. Date: February 2018
  41. Contact: Stanislav Nijnikov <[email protected]>
  42. Description: This file shows the protocol supported by an UFS device.
  43. This is one of the UFS device descriptor parameters.
  44. The full information about the descriptor could be found
  45. at UFS specifications 2.1.
  46. The file is read only.
  47. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_luns
  48. What: /sys/bus/platform/devices/*.ufs/device_descriptor/number_of_luns
  49. Date: February 2018
  50. Contact: Stanislav Nijnikov <[email protected]>
  51. Description: This file shows number of logical units. This is one of
  52. the UFS device descriptor parameters. The full information
  53. about the descriptor could be found at UFS specifications 2.1.
  54. The file is read only.
  55. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_wluns
  56. What: /sys/bus/platform/devices/*.ufs/device_descriptor/number_of_wluns
  57. Date: February 2018
  58. Contact: Stanislav Nijnikov <[email protected]>
  59. Description: This file shows number of well known logical units.
  60. This is one of the UFS device descriptor parameters.
  61. The full information about the descriptor could be found
  62. at UFS specifications 2.1.
  63. The file is read only.
  64. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/boot_enable
  65. What: /sys/bus/platform/devices/*.ufs/device_descriptor/boot_enable
  66. Date: February 2018
  67. Contact: Stanislav Nijnikov <[email protected]>
  68. Description: This file shows value that indicates whether the device is
  69. enabled for boot. This is one of the UFS device descriptor
  70. parameters. The full information about the descriptor could
  71. be found at UFS specifications 2.1.
  72. The file is read only.
  73. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/descriptor_access_enable
  74. What: /sys/bus/platform/devices/*.ufs/device_descriptor/descriptor_access_enable
  75. Date: February 2018
  76. Contact: Stanislav Nijnikov <[email protected]>
  77. Description: This file shows value that indicates whether the device
  78. descriptor could be read after partial initialization phase
  79. of the boot sequence. This is one of the UFS device descriptor
  80. parameters. The full information about the descriptor could
  81. be found at UFS specifications 2.1.
  82. The file is read only.
  83. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/initial_power_mode
  84. What: /sys/bus/platform/devices/*.ufs/device_descriptor/initial_power_mode
  85. Date: February 2018
  86. Contact: Stanislav Nijnikov <[email protected]>
  87. Description: This file shows value that defines the power mode after
  88. device initialization or hardware reset. This is one of
  89. the UFS device descriptor parameters. The full information
  90. about the descriptor could be found at UFS specifications 2.1.
  91. The file is read only.
  92. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/high_priority_lun
  93. What: /sys/bus/platform/devices/*.ufs/device_descriptor/high_priority_lun
  94. Date: February 2018
  95. Contact: Stanislav Nijnikov <[email protected]>
  96. Description: This file shows the high priority lun. This is one of
  97. the UFS device descriptor parameters. The full information
  98. about the descriptor could be found at UFS specifications 2.1.
  99. The file is read only.
  100. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/secure_removal_type
  101. What: /sys/bus/platform/devices/*.ufs/device_descriptor/secure_removal_type
  102. Date: February 2018
  103. Contact: Stanislav Nijnikov <[email protected]>
  104. Description: This file shows the secure removal type. This is one of
  105. the UFS device descriptor parameters. The full information
  106. about the descriptor could be found at UFS specifications 2.1.
  107. The file is read only.
  108. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/support_security_lun
  109. What: /sys/bus/platform/devices/*.ufs/device_descriptor/support_security_lun
  110. Date: February 2018
  111. Contact: Stanislav Nijnikov <[email protected]>
  112. Description: This file shows whether the security lun is supported.
  113. This is one of the UFS device descriptor parameters.
  114. The full information about the descriptor could be found
  115. at UFS specifications 2.1.
  116. The file is read only.
  117. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/bkops_termination_latency
  118. What: /sys/bus/platform/devices/*.ufs/device_descriptor/bkops_termination_latency
  119. Date: February 2018
  120. Contact: Stanislav Nijnikov <[email protected]>
  121. Description: This file shows the background operations termination
  122. latency. This is one of the UFS device descriptor parameters.
  123. The full information about the descriptor could be found
  124. at UFS specifications 2.1.
  125. The file is read only.
  126. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/initial_active_icc_level
  127. What: /sys/bus/platform/devices/*.ufs/device_descriptor/initial_active_icc_level
  128. Date: February 2018
  129. Contact: Stanislav Nijnikov <[email protected]>
  130. Description: This file shows the initial active ICC level. This is one
  131. of the UFS device descriptor parameters. The full information
  132. about the descriptor could be found at UFS specifications 2.1.
  133. The file is read only.
  134. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/specification_version
  135. What: /sys/bus/platform/devices/*.ufs/device_descriptor/specification_version
  136. Date: February 2018
  137. Contact: Stanislav Nijnikov <[email protected]>
  138. Description: This file shows the specification version. This is one
  139. of the UFS device descriptor parameters. The full information
  140. about the descriptor could be found at UFS specifications 2.1.
  141. The file is read only.
  142. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/manufacturing_date
  143. What: /sys/bus/platform/devices/*.ufs/device_descriptor/manufacturing_date
  144. Date: February 2018
  145. Contact: Stanislav Nijnikov <[email protected]>
  146. Description: This file shows the manufacturing date in BCD format.
  147. This is one of the UFS device descriptor parameters.
  148. The full information about the descriptor could be found
  149. at UFS specifications 2.1.
  150. The file is read only.
  151. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/manufacturer_id
  152. What: /sys/bus/platform/devices/*.ufs/device_descriptor/manufacturer_id
  153. Date: February 2018
  154. Contact: Stanislav Nijnikov <[email protected]>
  155. Description: This file shows the manufacturer ID. This is one of the
  156. UFS device descriptor parameters. The full information about
  157. the descriptor could be found at UFS specifications 2.1.
  158. The file is read only.
  159. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/rtt_capability
  160. What: /sys/bus/platform/devices/*.ufs/device_descriptor/rtt_capability
  161. Date: February 2018
  162. Contact: Stanislav Nijnikov <[email protected]>
  163. Description: This file shows the maximum number of outstanding RTTs
  164. supported by the device. This is one of the UFS device
  165. descriptor parameters. The full information about
  166. the descriptor could be found at UFS specifications 2.1.
  167. The file is read only.
  168. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/rtc_update
  169. What: /sys/bus/platform/devices/*.ufs/device_descriptor/rtc_update
  170. Date: February 2018
  171. Contact: Stanislav Nijnikov <[email protected]>
  172. Description: This file shows the frequency and method of the realtime
  173. clock update. This is one of the UFS device descriptor
  174. parameters. The full information about the descriptor
  175. could be found at UFS specifications 2.1.
  176. The file is read only.
  177. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/ufs_features
  178. What: /sys/bus/platform/devices/*.ufs/device_descriptor/ufs_features
  179. Date: February 2018
  180. Contact: Stanislav Nijnikov <[email protected]>
  181. Description: This file shows which features are supported by the device.
  182. This is one of the UFS device descriptor parameters.
  183. The full information about the descriptor could be
  184. found at UFS specifications 2.1.
  185. The file is read only.
  186. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/ffu_timeout
  187. What: /sys/bus/platform/devices/*.ufs/device_descriptor/ffu_timeout
  188. Date: February 2018
  189. Contact: Stanislav Nijnikov <[email protected]>
  190. Description: This file shows the FFU timeout. This is one of the
  191. UFS device descriptor parameters. The full information
  192. about the descriptor could be found at UFS specifications 2.1.
  193. The file is read only.
  194. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/queue_depth
  195. What: /sys/bus/platform/devices/*.ufs/device_descriptor/queue_depth
  196. Date: February 2018
  197. Contact: Stanislav Nijnikov <[email protected]>
  198. Description: This file shows the device queue depth. This is one of the
  199. UFS device descriptor parameters. The full information
  200. about the descriptor could be found at UFS specifications 2.1.
  201. The file is read only.
  202. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_version
  203. What: /sys/bus/platform/devices/*.ufs/device_descriptor/device_version
  204. Date: February 2018
  205. Contact: Stanislav Nijnikov <[email protected]>
  206. Description: This file shows the device version. This is one of the
  207. UFS device descriptor parameters. The full information
  208. about the descriptor could be found at UFS specifications 2.1.
  209. The file is read only.
  210. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_secure_wpa
  211. What: /sys/bus/platform/devices/*.ufs/device_descriptor/number_of_secure_wpa
  212. Date: February 2018
  213. Contact: Stanislav Nijnikov <[email protected]>
  214. Description: This file shows number of secure write protect areas
  215. supported by the device. This is one of the UFS device
  216. descriptor parameters. The full information about
  217. the descriptor could be found at UFS specifications 2.1.
  218. The file is read only.
  219. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/psa_max_data_size
  220. What: /sys/bus/platform/devices/*.ufs/device_descriptor/psa_max_data_size
  221. Date: February 2018
  222. Contact: Stanislav Nijnikov <[email protected]>
  223. Description: This file shows the maximum amount of data that may be
  224. written during the pre-soldering phase of the PSA flow.
  225. This is one of the UFS device descriptor parameters.
  226. The full information about the descriptor could be found
  227. at UFS specifications 2.1.
  228. The file is read only.
  229. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/psa_state_timeout
  230. What: /sys/bus/platform/devices/*.ufs/device_descriptor/psa_state_timeout
  231. Date: February 2018
  232. Contact: Stanislav Nijnikov <[email protected]>
  233. Description: This file shows the command maximum timeout for a change
  234. in PSA state. This is one of the UFS device descriptor
  235. parameters. The full information about the descriptor could
  236. be found at UFS specifications 2.1.
  237. The file is read only.
  238. What: /sys/bus/platform/drivers/ufshcd/*/interconnect_descriptor/unipro_version
  239. What: /sys/bus/platform/devices/*.ufs/interconnect_descriptor/unipro_version
  240. Date: February 2018
  241. Contact: Stanislav Nijnikov <[email protected]>
  242. Description: This file shows the MIPI UniPro version number in BCD format.
  243. This is one of the UFS interconnect descriptor parameters.
  244. The full information about the descriptor could be found at
  245. UFS specifications 2.1.
  246. The file is read only.
  247. What: /sys/bus/platform/drivers/ufshcd/*/interconnect_descriptor/mphy_version
  248. What: /sys/bus/platform/devices/*.ufs/interconnect_descriptor/mphy_version
  249. Date: February 2018
  250. Contact: Stanislav Nijnikov <[email protected]>
  251. Description: This file shows the MIPI M-PHY version number in BCD format.
  252. This is one of the UFS interconnect descriptor parameters.
  253. The full information about the descriptor could be found at
  254. UFS specifications 2.1.
  255. The file is read only.
  256. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/raw_device_capacity
  257. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/raw_device_capacity
  258. Date: February 2018
  259. Contact: Stanislav Nijnikov <[email protected]>
  260. Description: This file shows the total memory quantity available to
  261. the user to configure the device logical units. This is one
  262. of the UFS geometry descriptor parameters. The full
  263. information about the descriptor could be found at
  264. UFS specifications 2.1.
  265. The file is read only.
  266. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_number_of_luns
  267. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/max_number_of_luns
  268. Date: February 2018
  269. Contact: Stanislav Nijnikov <[email protected]>
  270. Description: This file shows the maximum number of logical units
  271. supported by the UFS device. This is one of the UFS
  272. geometry descriptor parameters. The full information about
  273. the descriptor could be found at UFS specifications 2.1.
  274. The file is read only.
  275. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/segment_size
  276. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/segment_size
  277. Date: February 2018
  278. Contact: Stanislav Nijnikov <[email protected]>
  279. Description: This file shows the segment size. This is one of the UFS
  280. geometry descriptor parameters. The full information about
  281. the descriptor could be found at UFS specifications 2.1.
  282. The file is read only.
  283. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/allocation_unit_size
  284. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/allocation_unit_size
  285. Date: February 2018
  286. Contact: Stanislav Nijnikov <[email protected]>
  287. Description: This file shows the allocation unit size. This is one of
  288. the UFS geometry descriptor parameters. The full information
  289. about the descriptor could be found at UFS specifications 2.1.
  290. The file is read only.
  291. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/min_addressable_block_size
  292. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/min_addressable_block_size
  293. Date: February 2018
  294. Contact: Stanislav Nijnikov <[email protected]>
  295. Description: This file shows the minimum addressable block size. This
  296. is one of the UFS geometry descriptor parameters. The full
  297. information about the descriptor could be found at UFS
  298. specifications 2.1.
  299. The file is read only.
  300. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/optimal_read_block_size
  301. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/optimal_read_block_size
  302. Date: February 2018
  303. Contact: Stanislav Nijnikov <[email protected]>
  304. Description: This file shows the optimal read block size. This is one
  305. of the UFS geometry descriptor parameters. The full
  306. information about the descriptor could be found at UFS
  307. specifications 2.1.
  308. The file is read only.
  309. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/optimal_write_block_size
  310. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/optimal_write_block_size
  311. Date: February 2018
  312. Contact: Stanislav Nijnikov <[email protected]>
  313. Description: This file shows the optimal write block size. This is one
  314. of the UFS geometry descriptor parameters. The full
  315. information about the descriptor could be found at UFS
  316. specifications 2.1.
  317. The file is read only.
  318. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_in_buffer_size
  319. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/max_in_buffer_size
  320. Date: February 2018
  321. Contact: Stanislav Nijnikov <[email protected]>
  322. Description: This file shows the maximum data-in buffer size. This
  323. is one of the UFS geometry descriptor parameters. The full
  324. information about the descriptor could be found at UFS
  325. specifications 2.1.
  326. The file is read only.
  327. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_out_buffer_size
  328. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/max_out_buffer_size
  329. Date: February 2018
  330. Contact: Stanislav Nijnikov <[email protected]>
  331. Description: This file shows the maximum data-out buffer size. This
  332. is one of the UFS geometry descriptor parameters. The full
  333. information about the descriptor could be found at UFS
  334. specifications 2.1.
  335. The file is read only.
  336. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/rpmb_rw_size
  337. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/rpmb_rw_size
  338. Date: February 2018
  339. Contact: Stanislav Nijnikov <[email protected]>
  340. Description: This file shows the maximum number of RPMB frames allowed
  341. in Security Protocol In/Out. This is one of the UFS geometry
  342. descriptor parameters. The full information about the
  343. descriptor could be found at UFS specifications 2.1.
  344. The file is read only.
  345. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/dyn_capacity_resource_policy
  346. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/dyn_capacity_resource_policy
  347. Date: February 2018
  348. Contact: Stanislav Nijnikov <[email protected]>
  349. Description: This file shows the dynamic capacity resource policy. This
  350. is one of the UFS geometry descriptor parameters. The full
  351. information about the descriptor could be found at
  352. UFS specifications 2.1.
  353. The file is read only.
  354. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/data_ordering
  355. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/data_ordering
  356. Date: February 2018
  357. Contact: Stanislav Nijnikov <[email protected]>
  358. Description: This file shows support for out-of-order data transfer.
  359. This is one of the UFS geometry descriptor parameters.
  360. The full information about the descriptor could be found at
  361. UFS specifications 2.1.
  362. The file is read only.
  363. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/max_number_of_contexts
  364. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/max_number_of_contexts
  365. Date: February 2018
  366. Contact: Stanislav Nijnikov <[email protected]>
  367. Description: This file shows maximum available number of contexts which
  368. are supported by the device. This is one of the UFS geometry
  369. descriptor parameters. The full information about the
  370. descriptor could be found at UFS specifications 2.1.
  371. The file is read only.
  372. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/sys_data_tag_unit_size
  373. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/sys_data_tag_unit_size
  374. Date: February 2018
  375. Contact: Stanislav Nijnikov <[email protected]>
  376. Description: This file shows system data tag unit size. This is one of
  377. the UFS geometry descriptor parameters. The full information
  378. about the descriptor could be found at UFS specifications 2.1.
  379. The file is read only.
  380. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/sys_data_tag_resource_size
  381. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/sys_data_tag_resource_size
  382. Date: February 2018
  383. Contact: Stanislav Nijnikov <[email protected]>
  384. Description: This file shows maximum storage area size allocated by
  385. the device to handle system data by the tagging mechanism.
  386. This is one of the UFS geometry descriptor parameters.
  387. The full information about the descriptor could be found at
  388. UFS specifications 2.1.
  389. The file is read only.
  390. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/secure_removal_types
  391. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/secure_removal_types
  392. Date: February 2018
  393. Contact: Stanislav Nijnikov <[email protected]>
  394. Description: This file shows supported secure removal types. This is
  395. one of the UFS geometry descriptor parameters. The full
  396. information about the descriptor could be found at
  397. UFS specifications 2.1.
  398. The file is read only.
  399. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/memory_types
  400. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/memory_types
  401. Date: February 2018
  402. Contact: Stanislav Nijnikov <[email protected]>
  403. Description: This file shows supported memory types. This is one of
  404. the UFS geometry descriptor parameters. The full
  405. information about the descriptor could be found at
  406. UFS specifications 2.1.
  407. The file is read only.
  408. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/*_memory_max_alloc_units
  409. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/*_memory_max_alloc_units
  410. Date: February 2018
  411. Contact: Stanislav Nijnikov <[email protected]>
  412. Description: This file shows the maximum number of allocation units for
  413. different memory types (system code, non persistent,
  414. enhanced type 1-4). This is one of the UFS geometry
  415. descriptor parameters. The full information about the
  416. descriptor could be found at UFS specifications 2.1.
  417. The file is read only.
  418. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/*_memory_capacity_adjustment_factor
  419. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/*_memory_capacity_adjustment_factor
  420. Date: February 2018
  421. Contact: Stanislav Nijnikov <[email protected]>
  422. Description: This file shows the memory capacity adjustment factor for
  423. different memory types (system code, non persistent,
  424. enhanced type 1-4). This is one of the UFS geometry
  425. descriptor parameters. The full information about the
  426. descriptor could be found at UFS specifications 2.1.
  427. The file is read only.
  428. What: /sys/bus/platform/drivers/ufshcd/*/health_descriptor/eol_info
  429. What: /sys/bus/platform/devices/*.ufs/health_descriptor/eol_info
  430. Date: February 2018
  431. Contact: Stanislav Nijnikov <[email protected]>
  432. Description: This file shows preend of life information. This is one
  433. of the UFS health descriptor parameters. The full
  434. information about the descriptor could be found at
  435. UFS specifications 2.1.
  436. The file is read only.
  437. What: /sys/bus/platform/drivers/ufshcd/*/health_descriptor/life_time_estimation_a
  438. What: /sys/bus/platform/devices/*.ufs/health_descriptor/life_time_estimation_a
  439. Date: February 2018
  440. Contact: Stanislav Nijnikov <[email protected]>
  441. Description: This file shows indication of the device life time
  442. (method a). This is one of the UFS health descriptor
  443. parameters. The full information about the descriptor
  444. could be found at UFS specifications 2.1.
  445. The file is read only.
  446. What: /sys/bus/platform/drivers/ufshcd/*/health_descriptor/life_time_estimation_b
  447. What: /sys/bus/platform/devices/*.ufs/health_descriptor/life_time_estimation_b
  448. Date: February 2018
  449. Contact: Stanislav Nijnikov <[email protected]>
  450. Description: This file shows indication of the device life time
  451. (method b). This is one of the UFS health descriptor
  452. parameters. The full information about the descriptor
  453. could be found at UFS specifications 2.1.
  454. The file is read only.
  455. What: /sys/bus/platform/drivers/ufshcd/*/power_descriptor/active_icc_levels_vcc*
  456. What: /sys/bus/platform/devices/*.ufs/power_descriptor/active_icc_levels_vcc*
  457. Date: February 2018
  458. Contact: Stanislav Nijnikov <[email protected]>
  459. Description: This file shows maximum VCC, VCCQ and VCCQ2 value for
  460. active ICC levels from 0 to 15. This is one of the UFS
  461. power descriptor parameters. The full information about
  462. the descriptor could be found at UFS specifications 2.1.
  463. The file is read only.
  464. What: /sys/bus/platform/drivers/ufshcd/*/string_descriptors/manufacturer_name
  465. What: /sys/bus/platform/devices/*.ufs/string_descriptors/manufacturer_name
  466. Date: February 2018
  467. Contact: Stanislav Nijnikov <[email protected]>
  468. Description: This file contains a device manufacturer name string.
  469. The full information about the descriptor could be found at
  470. UFS specifications 2.1.
  471. The file is read only.
  472. What: /sys/bus/platform/drivers/ufshcd/*/string_descriptors/product_name
  473. What: /sys/bus/platform/devices/*.ufs/string_descriptors/product_name
  474. Date: February 2018
  475. Contact: Stanislav Nijnikov <[email protected]>
  476. Description: This file contains a product name string. The full information
  477. about the descriptor could be found at UFS specifications 2.1.
  478. The file is read only.
  479. What: /sys/bus/platform/drivers/ufshcd/*/string_descriptors/oem_id
  480. What: /sys/bus/platform/devices/*.ufs/string_descriptors/oem_id
  481. Date: February 2018
  482. Contact: Stanislav Nijnikov <[email protected]>
  483. Description: This file contains a OEM ID string. The full information
  484. about the descriptor could be found at UFS specifications 2.1.
  485. The file is read only.
  486. What: /sys/bus/platform/drivers/ufshcd/*/string_descriptors/serial_number
  487. What: /sys/bus/platform/devices/*.ufs/string_descriptors/serial_number
  488. Date: February 2018
  489. Contact: Stanislav Nijnikov <[email protected]>
  490. Description: This file contains a device serial number string. The full
  491. information about the descriptor could be found at
  492. UFS specifications 2.1.
  493. The file is read only.
  494. What: /sys/bus/platform/drivers/ufshcd/*/string_descriptors/product_revision
  495. What: /sys/bus/platform/devices/*.ufs/string_descriptors/product_revision
  496. Date: February 2018
  497. Contact: Stanislav Nijnikov <[email protected]>
  498. Description: This file contains a product revision string. The full
  499. information about the descriptor could be found at
  500. UFS specifications 2.1.
  501. The file is read only.
  502. What: /sys/class/scsi_device/*/device/unit_descriptor/boot_lun_id
  503. Date: February 2018
  504. Contact: Stanislav Nijnikov <[email protected]>
  505. Description: This file shows boot LUN information. This is one of
  506. the UFS unit descriptor parameters. The full information
  507. about the descriptor could be found at UFS specifications 2.1.
  508. The file is read only.
  509. What: /sys/class/scsi_device/*/device/unit_descriptor/lun_write_protect
  510. Date: February 2018
  511. Contact: Stanislav Nijnikov <[email protected]>
  512. Description: This file shows LUN write protection status. This is one of
  513. the UFS unit descriptor parameters. The full information
  514. about the descriptor could be found at UFS specifications 2.1.
  515. The file is read only.
  516. What: /sys/class/scsi_device/*/device/unit_descriptor/lun_queue_depth
  517. Date: February 2018
  518. Contact: Stanislav Nijnikov <[email protected]>
  519. Description: This file shows LUN queue depth. This is one of the UFS
  520. unit descriptor parameters. The full information about
  521. the descriptor could be found at UFS specifications 2.1.
  522. The file is read only.
  523. What: /sys/class/scsi_device/*/device/unit_descriptor/psa_sensitive
  524. Date: February 2018
  525. Contact: Stanislav Nijnikov <[email protected]>
  526. Description: This file shows PSA sensitivity. This is one of the UFS
  527. unit descriptor parameters. The full information about
  528. the descriptor could be found at UFS specifications 2.1.
  529. The file is read only.
  530. What: /sys/class/scsi_device/*/device/unit_descriptor/lun_memory_type
  531. Date: February 2018
  532. Contact: Stanislav Nijnikov <[email protected]>
  533. Description: This file shows LUN memory type. This is one of the UFS
  534. unit descriptor parameters. The full information about
  535. the descriptor could be found at UFS specifications 2.1.
  536. The file is read only.
  537. What: /sys/class/scsi_device/*/device/unit_descriptor/data_reliability
  538. Date: February 2018
  539. Contact: Stanislav Nijnikov <[email protected]>
  540. Description: This file defines the device behavior when a power failure
  541. occurs during a write operation. This is one of the UFS
  542. unit descriptor parameters. The full information about
  543. the descriptor could be found at UFS specifications 2.1.
  544. The file is read only.
  545. What: /sys/class/scsi_device/*/device/unit_descriptor/logical_block_size
  546. Date: February 2018
  547. Contact: Stanislav Nijnikov <[email protected]>
  548. Description: This file shows the size of addressable logical blocks
  549. (calculated as an exponent with base 2). This is one of
  550. the UFS unit descriptor parameters. The full information about
  551. the descriptor could be found at UFS specifications 2.1.
  552. The file is read only.
  553. What: /sys/class/scsi_device/*/device/unit_descriptor/logical_block_count
  554. Date: February 2018
  555. Contact: Stanislav Nijnikov <[email protected]>
  556. Description: This file shows total number of addressable logical blocks.
  557. This is one of the UFS unit descriptor parameters. The full
  558. information about the descriptor could be found at
  559. UFS specifications 2.1.
  560. The file is read only.
  561. What: /sys/class/scsi_device/*/device/unit_descriptor/erase_block_size
  562. Date: February 2018
  563. Contact: Stanislav Nijnikov <[email protected]>
  564. Description: This file shows the erase block size. This is one of
  565. the UFS unit descriptor parameters. The full information
  566. about the descriptor could be found at UFS specifications 2.1.
  567. The file is read only.
  568. What: /sys/class/scsi_device/*/device/unit_descriptor/provisioning_type
  569. Date: February 2018
  570. Contact: Stanislav Nijnikov <[email protected]>
  571. Description: This file shows the thin provisioning type. This is one of
  572. the UFS unit descriptor parameters. The full information
  573. about the descriptor could be found at UFS specifications 2.1.
  574. The file is read only.
  575. What: /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_count
  576. Date: February 2018
  577. Contact: Stanislav Nijnikov <[email protected]>
  578. Description: This file shows the total physical memory resources. This is
  579. one of the UFS unit descriptor parameters. The full information
  580. about the descriptor could be found at UFS specifications 2.1.
  581. The file is read only.
  582. What: /sys/class/scsi_device/*/device/unit_descriptor/context_capabilities
  583. Date: February 2018
  584. Contact: Stanislav Nijnikov <[email protected]>
  585. Description: This file shows the context capabilities. This is one of
  586. the UFS unit descriptor parameters. The full information
  587. about the descriptor could be found at UFS specifications 2.1.
  588. The file is read only.
  589. What: /sys/class/scsi_device/*/device/unit_descriptor/large_unit_granularity
  590. Date: February 2018
  591. Contact: Stanislav Nijnikov <[email protected]>
  592. Description: This file shows the granularity of the LUN. This is one of
  593. the UFS unit descriptor parameters. The full information
  594. about the descriptor could be found at UFS specifications 2.1.
  595. The file is read only.
  596. What: /sys/bus/platform/drivers/ufshcd/*/flags/device_init
  597. What: /sys/bus/platform/devices/*.ufs/flags/device_init
  598. Date: February 2018
  599. Contact: Stanislav Nijnikov <[email protected]>
  600. Description: This file shows the device init status. The full information
  601. about the flag could be found at UFS specifications 2.1.
  602. The file is read only.
  603. What: /sys/bus/platform/drivers/ufshcd/*/flags/permanent_wpe
  604. What: /sys/bus/platform/devices/*.ufs/flags/permanent_wpe
  605. Date: February 2018
  606. Contact: Stanislav Nijnikov <[email protected]>
  607. Description: This file shows whether permanent write protection is enabled.
  608. The full information about the flag could be found at
  609. UFS specifications 2.1.
  610. The file is read only.
  611. What: /sys/bus/platform/drivers/ufshcd/*/flags/power_on_wpe
  612. What: /sys/bus/platform/devices/*.ufs/flags/power_on_wpe
  613. Date: February 2018
  614. Contact: Stanislav Nijnikov <[email protected]>
  615. Description: This file shows whether write protection is enabled on all
  616. logical units configured as power on write protected. The
  617. full information about the flag could be found at
  618. UFS specifications 2.1.
  619. The file is read only.
  620. What: /sys/bus/platform/drivers/ufshcd/*/flags/bkops_enable
  621. What: /sys/bus/platform/devices/*.ufs/flags/bkops_enable
  622. Date: February 2018
  623. Contact: Stanislav Nijnikov <[email protected]>
  624. Description: This file shows whether the device background operations are
  625. enabled. The full information about the flag could be
  626. found at UFS specifications 2.1.
  627. The file is read only.
  628. What: /sys/bus/platform/drivers/ufshcd/*/flags/life_span_mode_enable
  629. What: /sys/bus/platform/devices/*.ufs/flags/life_span_mode_enable
  630. Date: February 2018
  631. Contact: Stanislav Nijnikov <[email protected]>
  632. Description: This file shows whether the device life span mode is enabled.
  633. The full information about the flag could be found at
  634. UFS specifications 2.1.
  635. The file is read only.
  636. What: /sys/bus/platform/drivers/ufshcd/*/flags/phy_resource_removal
  637. What: /sys/bus/platform/devices/*.ufs/flags/phy_resource_removal
  638. Date: February 2018
  639. Contact: Stanislav Nijnikov <[email protected]>
  640. Description: This file shows whether physical resource removal is enable.
  641. The full information about the flag could be found at
  642. UFS specifications 2.1.
  643. The file is read only.
  644. What: /sys/bus/platform/drivers/ufshcd/*/flags/busy_rtc
  645. What: /sys/bus/platform/devices/*.ufs/flags/busy_rtc
  646. Date: February 2018
  647. Contact: Stanislav Nijnikov <[email protected]>
  648. Description: This file shows whether the device is executing internal
  649. operation related to real time clock. The full information
  650. about the flag could be found at UFS specifications 2.1.
  651. The file is read only.
  652. What: /sys/bus/platform/drivers/ufshcd/*/flags/disable_fw_update
  653. What: /sys/bus/platform/devices/*.ufs/flags/disable_fw_update
  654. Date: February 2018
  655. Contact: Stanislav Nijnikov <[email protected]>
  656. Description: This file shows whether the device FW update is permanently
  657. disabled. The full information about the flag could be found
  658. at UFS specifications 2.1.
  659. The file is read only.
  660. What: /sys/bus/platform/drivers/ufshcd/*/attributes/boot_lun_enabled
  661. What: /sys/bus/platform/devices/*.ufs/attributes/boot_lun_enabled
  662. Date: February 2018
  663. Contact: Stanislav Nijnikov <[email protected]>
  664. Description: This file provides the boot lun enabled UFS device attribute.
  665. The full information about the attribute could be found at
  666. UFS specifications 2.1.
  667. The file is read only.
  668. What: /sys/bus/platform/drivers/ufshcd/*/attributes/current_power_mode
  669. What: /sys/bus/platform/devices/*.ufs/attributes/current_power_mode
  670. Date: February 2018
  671. Contact: Stanislav Nijnikov <[email protected]>
  672. Description: This file provides the current power mode UFS device attribute.
  673. The full information about the attribute could be found at
  674. UFS specifications 2.1.
  675. The file is read only.
  676. What: /sys/bus/platform/drivers/ufshcd/*/attributes/active_icc_level
  677. What: /sys/bus/platform/devices/*.ufs/attributes/active_icc_level
  678. Date: February 2018
  679. Contact: Stanislav Nijnikov <[email protected]>
  680. Description: This file provides the active icc level UFS device attribute.
  681. The full information about the attribute could be found at
  682. UFS specifications 2.1.
  683. The file is read only.
  684. What: /sys/bus/platform/drivers/ufshcd/*/attributes/ooo_data_enabled
  685. What: /sys/bus/platform/devices/*.ufs/attributes/ooo_data_enabled
  686. Date: February 2018
  687. Contact: Stanislav Nijnikov <[email protected]>
  688. Description: This file provides the out of order data transfer enabled UFS
  689. device attribute. The full information about the attribute
  690. could be found at UFS specifications 2.1.
  691. The file is read only.
  692. What: /sys/bus/platform/drivers/ufshcd/*/attributes/bkops_status
  693. What: /sys/bus/platform/devices/*.ufs/attributes/bkops_status
  694. Date: February 2018
  695. Contact: Stanislav Nijnikov <[email protected]>
  696. Description: This file provides the background operations status UFS device
  697. attribute. The full information about the attribute could
  698. be found at UFS specifications 2.1.
  699. The file is read only.
  700. What: /sys/bus/platform/drivers/ufshcd/*/attributes/purge_status
  701. What: /sys/bus/platform/devices/*.ufs/attributes/purge_status
  702. Date: February 2018
  703. Contact: Stanislav Nijnikov <[email protected]>
  704. Description: This file provides the purge operation status UFS device
  705. attribute. The full information about the attribute could
  706. be found at UFS specifications 2.1.
  707. The file is read only.
  708. What: /sys/bus/platform/drivers/ufshcd/*/attributes/max_data_in_size
  709. What: /sys/bus/platform/devices/*.ufs/attributes/max_data_in_size
  710. Date: February 2018
  711. Contact: Stanislav Nijnikov <[email protected]>
  712. Description: This file shows the maximum data size in a DATA IN
  713. UPIU. The full information about the attribute could
  714. be found at UFS specifications 2.1.
  715. The file is read only.
  716. What: /sys/bus/platform/drivers/ufshcd/*/attributes/max_data_out_size
  717. What: /sys/bus/platform/devices/*.ufs/attributes/max_data_out_size
  718. Date: February 2018
  719. Contact: Stanislav Nijnikov <[email protected]>
  720. Description: This file shows the maximum number of bytes that can be
  721. requested with a READY TO TRANSFER UPIU. The full information
  722. about the attribute could be found at UFS specifications 2.1.
  723. The file is read only.
  724. What: /sys/bus/platform/drivers/ufshcd/*/attributes/reference_clock_frequency
  725. What: /sys/bus/platform/devices/*.ufs/attributes/reference_clock_frequency
  726. Date: February 2018
  727. Contact: Stanislav Nijnikov <[email protected]>
  728. Description: This file provides the reference clock frequency UFS device
  729. attribute. The full information about the attribute could
  730. be found at UFS specifications 2.1.
  731. The file is read only.
  732. What: /sys/bus/platform/drivers/ufshcd/*/attributes/configuration_descriptor_lock
  733. What: /sys/bus/platform/devices/*.ufs/attributes/configuration_descriptor_lock
  734. Date: February 2018
  735. Contact: Stanislav Nijnikov <[email protected]>
  736. Description: This file shows whether the configuration descriptor is locked.
  737. The full information about the attribute could be found at
  738. UFS specifications 2.1. The file is read only.
  739. What: /sys/bus/platform/drivers/ufshcd/*/attributes/max_number_of_rtt
  740. What: /sys/bus/platform/devices/*.ufs/attributes/max_number_of_rtt
  741. Date: February 2018
  742. Contact: Stanislav Nijnikov <[email protected]>
  743. Description: This file provides the maximum current number of
  744. outstanding RTTs in device that is allowed. The full
  745. information about the attribute could be found at
  746. UFS specifications 2.1.
  747. The file is read only.
  748. What: /sys/bus/platform/drivers/ufshcd/*/attributes/exception_event_control
  749. What: /sys/bus/platform/devices/*.ufs/attributes/exception_event_control
  750. Date: February 2018
  751. Contact: Stanislav Nijnikov <[email protected]>
  752. Description: This file provides the exception event control UFS device
  753. attribute. The full information about the attribute could
  754. be found at UFS specifications 2.1.
  755. The file is read only.
  756. What: /sys/bus/platform/drivers/ufshcd/*/attributes/exception_event_status
  757. What: /sys/bus/platform/devices/*.ufs/attributes/exception_event_status
  758. Date: February 2018
  759. Contact: Stanislav Nijnikov <[email protected]>
  760. Description: This file provides the exception event status UFS device
  761. attribute. The full information about the attribute could
  762. be found at UFS specifications 2.1.
  763. The file is read only.
  764. What: /sys/bus/platform/drivers/ufshcd/*/attributes/ffu_status
  765. What: /sys/bus/platform/devices/*.ufs/attributes/ffu_status
  766. Date: February 2018
  767. Contact: Stanislav Nijnikov <[email protected]>
  768. Description: This file provides the ffu status UFS device attribute.
  769. The full information about the attribute could be found at
  770. UFS specifications 2.1.
  771. The file is read only.
  772. What: /sys/bus/platform/drivers/ufshcd/*/attributes/psa_state
  773. What: /sys/bus/platform/devices/*.ufs/attributes/psa_state
  774. Date: February 2018
  775. Contact: Stanislav Nijnikov <[email protected]>
  776. Description: This file show the PSA feature status. The full information
  777. about the attribute could be found at UFS specifications 2.1.
  778. The file is read only.
  779. What: /sys/bus/platform/drivers/ufshcd/*/attributes/psa_data_size
  780. What: /sys/bus/platform/devices/*.ufs/attributes/psa_data_size
  781. Date: February 2018
  782. Contact: Stanislav Nijnikov <[email protected]>
  783. Description: This file shows the amount of data that the host plans to
  784. load to all logical units in pre-soldering state.
  785. The full information about the attribute could be found at
  786. UFS specifications 2.1.
  787. The file is read only.
  788. What: /sys/class/scsi_device/*/device/dyn_cap_needed
  789. Date: February 2018
  790. Contact: Stanislav Nijnikov <[email protected]>
  791. Description: This file shows the amount of physical memory needed
  792. to be removed from the physical memory resources pool of
  793. the particular logical unit. The full information about
  794. the attribute could be found at UFS specifications 2.1.
  795. The file is read only.
  796. What: /sys/bus/platform/drivers/ufshcd/*/rpm_lvl
  797. What: /sys/bus/platform/devices/*.ufs/rpm_lvl
  798. Date: September 2014
  799. Contact: Subhash Jadavani <[email protected]>
  800. Description: This entry could be used to set or show the UFS device
  801. runtime power management level. The current driver
  802. implementation supports 7 levels with next target states:
  803. == ====================================================
  804. 0 UFS device will stay active, UIC link will
  805. stay active
  806. 1 UFS device will stay active, UIC link will
  807. hibernate
  808. 2 UFS device will be moved to sleep, UIC link will
  809. stay active
  810. 3 UFS device will be moved to sleep, UIC link will
  811. hibernate
  812. 4 UFS device will be powered off, UIC link will
  813. hibernate
  814. 5 UFS device will be powered off, UIC link will
  815. be powered off
  816. 6 UFS device will be moved to deep sleep, UIC link
  817. will be powered off. Note, deep sleep might not be
  818. supported in which case this value will not be
  819. accepted
  820. == ====================================================
  821. What: /sys/bus/platform/drivers/ufshcd/*/rpm_target_dev_state
  822. What: /sys/bus/platform/devices/*.ufs/rpm_target_dev_state
  823. Date: February 2018
  824. Contact: Subhash Jadavani <[email protected]>
  825. Description: This entry shows the target power mode of an UFS device
  826. for the chosen runtime power management level.
  827. The file is read only.
  828. What: /sys/bus/platform/drivers/ufshcd/*/rpm_target_link_state
  829. What: /sys/bus/platform/devices/*.ufs/rpm_target_link_state
  830. Date: February 2018
  831. Contact: Subhash Jadavani <[email protected]>
  832. Description: This entry shows the target state of an UFS UIC link
  833. for the chosen runtime power management level.
  834. The file is read only.
  835. What: /sys/bus/platform/drivers/ufshcd/*/spm_lvl
  836. What: /sys/bus/platform/devices/*.ufs/spm_lvl
  837. Date: September 2014
  838. Contact: Subhash Jadavani <[email protected]>
  839. Description: This entry could be used to set or show the UFS device
  840. system power management level. The current driver
  841. implementation supports 7 levels with next target states:
  842. == ====================================================
  843. 0 UFS device will stay active, UIC link will
  844. stay active
  845. 1 UFS device will stay active, UIC link will
  846. hibernate
  847. 2 UFS device will be moved to sleep, UIC link will
  848. stay active
  849. 3 UFS device will be moved to sleep, UIC link will
  850. hibernate
  851. 4 UFS device will be powered off, UIC link will
  852. hibernate
  853. 5 UFS device will be powered off, UIC link will
  854. be powered off
  855. 6 UFS device will be moved to deep sleep, UIC link
  856. will be powered off. Note, deep sleep might not be
  857. supported in which case this value will not be
  858. accepted
  859. == ====================================================
  860. What: /sys/bus/platform/drivers/ufshcd/*/spm_target_dev_state
  861. What: /sys/bus/platform/devices/*.ufs/spm_target_dev_state
  862. Date: February 2018
  863. Contact: Subhash Jadavani <[email protected]>
  864. Description: This entry shows the target power mode of an UFS device
  865. for the chosen system power management level.
  866. The file is read only.
  867. What: /sys/bus/platform/drivers/ufshcd/*/spm_target_link_state
  868. What: /sys/bus/platform/devices/*.ufs/spm_target_link_state
  869. Date: February 2018
  870. Contact: Subhash Jadavani <[email protected]>
  871. Description: This entry shows the target state of an UFS UIC link
  872. for the chosen system power management level.
  873. The file is read only.
  874. What: /sys/bus/platform/drivers/ufshcd/*/monitor/monitor_enable
  875. What: /sys/bus/platform/devices/*.ufs/monitor/monitor_enable
  876. Date: January 2021
  877. Contact: Can Guo <[email protected]>
  878. Description: This file shows the status of performance monitor enablement
  879. and it can be used to start/stop the monitor. When the monitor
  880. is stopped, the performance data collected is also cleared.
  881. What: /sys/bus/platform/drivers/ufshcd/*/monitor/monitor_chunk_size
  882. What: /sys/bus/platform/devices/*.ufs/monitor/monitor_chunk_size
  883. Date: January 2021
  884. Contact: Can Guo <[email protected]>
  885. Description: This file tells the monitor to focus on requests transferring
  886. data of specific chunk size (in Bytes). 0 means any chunk size.
  887. It can only be changed when monitor is disabled.
  888. What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_total_sectors
  889. What: /sys/bus/platform/devices/*.ufs/monitor/read_total_sectors
  890. Date: January 2021
  891. Contact: Can Guo <[email protected]>
  892. Description: This file shows how many sectors (in 512 Bytes) have been
  893. sent from device to host after monitor gets started.
  894. The file is read only.
  895. What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_total_busy
  896. What: /sys/bus/platform/devices/*.ufs/monitor/read_total_busy
  897. Date: January 2021
  898. Contact: Can Guo <[email protected]>
  899. Description: This file shows how long (in micro seconds) has been spent
  900. sending data from device to host after monitor gets started.
  901. The file is read only.
  902. What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_nr_requests
  903. What: /sys/bus/platform/devices/*.ufs/monitor/read_nr_requests
  904. Date: January 2021
  905. Contact: Can Guo <[email protected]>
  906. Description: This file shows how many read requests have been sent after
  907. monitor gets started.
  908. The file is read only.
  909. What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_max
  910. What: /sys/bus/platform/devices/*.ufs/monitor/read_req_latency_max
  911. Date: January 2021
  912. Contact: Can Guo <[email protected]>
  913. Description: This file shows the maximum latency (in micro seconds) of
  914. read requests after monitor gets started.
  915. The file is read only.
  916. What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_min
  917. What: /sys/bus/platform/devices/*.ufs/monitor/read_req_latency_min
  918. Date: January 2021
  919. Contact: Can Guo <[email protected]>
  920. Description: This file shows the minimum latency (in micro seconds) of
  921. read requests after monitor gets started.
  922. The file is read only.
  923. What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_avg
  924. What: /sys/bus/platform/devices/*.ufs/monitor/read_req_latency_avg
  925. Date: January 2021
  926. Contact: Can Guo <[email protected]>
  927. Description: This file shows the average latency (in micro seconds) of
  928. read requests after monitor gets started.
  929. The file is read only.
  930. What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_sum
  931. What: /sys/bus/platform/devices/*.ufs/monitor/read_req_latency_sum
  932. Date: January 2021
  933. Contact: Can Guo <[email protected]>
  934. Description: This file shows the total latency (in micro seconds) of
  935. read requests sent after monitor gets started.
  936. The file is read only.
  937. What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_total_sectors
  938. What: /sys/bus/platform/devices/*.ufs/monitor/write_total_sectors
  939. Date: January 2021
  940. Contact: Can Guo <[email protected]>
  941. Description: This file shows how many sectors (in 512 Bytes) have been sent
  942. from host to device after monitor gets started.
  943. The file is read only.
  944. What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_total_busy
  945. What: /sys/bus/platform/devices/*.ufs/monitor/write_total_busy
  946. Date: January 2021
  947. Contact: Can Guo <[email protected]>
  948. Description: This file shows how long (in micro seconds) has been spent
  949. sending data from host to device after monitor gets started.
  950. The file is read only.
  951. What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_nr_requests
  952. What: /sys/bus/platform/devices/*.ufs/monitor/write_nr_requests
  953. Date: January 2021
  954. Contact: Can Guo <[email protected]>
  955. Description: This file shows how many write requests have been sent after
  956. monitor gets started.
  957. The file is read only.
  958. What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_max
  959. What: /sys/bus/platform/devices/*.ufs/monitor/write_req_latency_max
  960. Date: January 2021
  961. Contact: Can Guo <[email protected]>
  962. Description: This file shows the maximum latency (in micro seconds) of write
  963. requests after monitor gets started.
  964. The file is read only.
  965. What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_min
  966. What: /sys/bus/platform/devices/*.ufs/monitor/write_req_latency_min
  967. Date: January 2021
  968. Contact: Can Guo <[email protected]>
  969. Description: This file shows the minimum latency (in micro seconds) of write
  970. requests after monitor gets started.
  971. The file is read only.
  972. What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_avg
  973. What: /sys/bus/platform/devices/*.ufs/monitor/write_req_latency_avg
  974. Date: January 2021
  975. Contact: Can Guo <[email protected]>
  976. Description: This file shows the average latency (in micro seconds) of write
  977. requests after monitor gets started.
  978. The file is read only.
  979. What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_sum
  980. What: /sys/bus/platform/devices/*.ufs/monitor/write_req_latency_sum
  981. Date: January 2021
  982. Contact: Can Guo <[email protected]>
  983. Description: This file shows the total latency (in micro seconds) of write
  984. requests after monitor gets started.
  985. The file is read only.
  986. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_presv_us_en
  987. What: /sys/bus/platform/devices/*.ufs/device_descriptor/wb_presv_us_en
  988. Date: June 2020
  989. Contact: Asutosh Das <[email protected]>
  990. Description: This entry shows if preserve user-space was configured
  991. The file is read only.
  992. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_shared_alloc_units
  993. What: /sys/bus/platform/devices/*.ufs/device_descriptor/wb_shared_alloc_units
  994. Date: June 2020
  995. Contact: Asutosh Das <[email protected]>
  996. Description: This entry shows the shared allocated units of WB buffer
  997. The file is read only.
  998. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_type
  999. What: /sys/bus/platform/devices/*.ufs/device_descriptor/wb_type
  1000. Date: June 2020
  1001. Contact: Asutosh Das <[email protected]>
  1002. Description: This entry shows the configured WB type.
  1003. 0x1 for shared buffer mode. 0x0 for dedicated buffer mode.
  1004. The file is read only.
  1005. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_buff_cap_adj
  1006. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_buff_cap_adj
  1007. Date: June 2020
  1008. Contact: Asutosh Das <[email protected]>
  1009. Description: This entry shows the total user-space decrease in shared
  1010. buffer mode.
  1011. The value of this parameter is 3 for TLC NAND when SLC mode
  1012. is used as WriteBooster Buffer. 2 for MLC NAND.
  1013. The file is read only.
  1014. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_max_alloc_units
  1015. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_max_alloc_units
  1016. Date: June 2020
  1017. Contact: Asutosh Das <[email protected]>
  1018. Description: This entry shows the Maximum total WriteBooster Buffer size
  1019. which is supported by the entire device.
  1020. The file is read only.
  1021. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_max_wb_luns
  1022. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_max_wb_luns
  1023. Date: June 2020
  1024. Contact: Asutosh Das <[email protected]>
  1025. Description: This entry shows the maximum number of luns that can support
  1026. WriteBooster.
  1027. The file is read only.
  1028. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_sup_red_type
  1029. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_sup_red_type
  1030. Date: June 2020
  1031. Contact: Asutosh Das <[email protected]>
  1032. Description: The supportability of user space reduction mode
  1033. and preserve user space mode.
  1034. 00h: WriteBooster Buffer can be configured only in
  1035. user space reduction type.
  1036. 01h: WriteBooster Buffer can be configured only in
  1037. preserve user space type.
  1038. 02h: Device can be configured in either user space
  1039. reduction type or preserve user space type.
  1040. The file is read only.
  1041. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/wb_sup_wb_type
  1042. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/wb_sup_wb_type
  1043. Date: June 2020
  1044. Contact: Asutosh Das <[email protected]>
  1045. Description: The supportability of WriteBooster Buffer type.
  1046. === ==========================================================
  1047. 00h LU based WriteBooster Buffer configuration
  1048. 01h Single shared WriteBooster Buffer configuration
  1049. 02h Supporting both LU based WriteBooster.
  1050. Buffer and Single shared WriteBooster Buffer configuration
  1051. === ==========================================================
  1052. The file is read only.
  1053. What: /sys/bus/platform/drivers/ufshcd/*/flags/wb_enable
  1054. What: /sys/bus/platform/devices/*.ufs/flags/wb_enable
  1055. Date: June 2020
  1056. Contact: Asutosh Das <[email protected]>
  1057. Description: This entry shows the status of WriteBooster.
  1058. == ============================
  1059. 0 WriteBooster is not enabled.
  1060. 1 WriteBooster is enabled
  1061. == ============================
  1062. The file is read only.
  1063. What: /sys/bus/platform/drivers/ufshcd/*/flags/wb_flush_en
  1064. What: /sys/bus/platform/devices/*.ufs/flags/wb_flush_en
  1065. Date: June 2020
  1066. Contact: Asutosh Das <[email protected]>
  1067. Description: This entry shows if flush is enabled.
  1068. == =================================
  1069. 0 Flush operation is not performed.
  1070. 1 Flush operation is performed.
  1071. == =================================
  1072. The file is read only.
  1073. What: /sys/bus/platform/drivers/ufshcd/*/flags/wb_flush_during_h8
  1074. What: /sys/bus/platform/devices/*.ufs/flags/wb_flush_during_h8
  1075. Date: June 2020
  1076. Contact: Asutosh Das <[email protected]>
  1077. Description: Flush WriteBooster Buffer during hibernate state.
  1078. == =================================================
  1079. 0 Device is not allowed to flush the
  1080. WriteBooster Buffer during link hibernate state.
  1081. 1 Device is allowed to flush the
  1082. WriteBooster Buffer during link hibernate state.
  1083. == =================================================
  1084. The file is read only.
  1085. What: /sys/bus/platform/drivers/ufshcd/*/attributes/wb_avail_buf
  1086. What: /sys/bus/platform/devices/*.ufs/attributes/wb_avail_buf
  1087. Date: June 2020
  1088. Contact: Asutosh Das <[email protected]>
  1089. Description: This entry shows the amount of unused WriteBooster buffer
  1090. available.
  1091. The file is read only.
  1092. What: /sys/bus/platform/drivers/ufshcd/*/attributes/wb_cur_buf
  1093. What: /sys/bus/platform/devices/*.ufs/attributes/wb_cur_buf
  1094. Date: June 2020
  1095. Contact: Asutosh Das <[email protected]>
  1096. Description: This entry shows the amount of unused current buffer.
  1097. The file is read only.
  1098. What: /sys/bus/platform/drivers/ufshcd/*/attributes/wb_flush_status
  1099. What: /sys/bus/platform/devices/*.ufs/attributes/wb_flush_status
  1100. Date: June 2020
  1101. Contact: Asutosh Das <[email protected]>
  1102. Description: This entry shows the flush operation status.
  1103. === ======================================
  1104. 00h idle
  1105. 01h Flush operation in progress
  1106. 02h Flush operation stopped prematurely.
  1107. 03h Flush operation completed successfully
  1108. 04h Flush operation general failure
  1109. === ======================================
  1110. The file is read only.
  1111. What: /sys/bus/platform/drivers/ufshcd/*/attributes/wb_life_time_est
  1112. What: /sys/bus/platform/devices/*.ufs/attributes/wb_life_time_est
  1113. Date: June 2020
  1114. Contact: Asutosh Das <[email protected]>
  1115. Description: This entry shows an indication of the WriteBooster Buffer
  1116. lifetime based on the amount of performed program/erase cycles
  1117. === =============================================
  1118. 01h 0% - 10% WriteBooster Buffer life time used
  1119. ...
  1120. 0Ah 90% - 100% WriteBooster Buffer life time used
  1121. === =============================================
  1122. The file is read only.
  1123. What: /sys/class/scsi_device/*/device/unit_descriptor/wb_buf_alloc_units
  1124. Date: June 2020
  1125. Contact: Asutosh Das <[email protected]>
  1126. Description: This entry shows the configured size of WriteBooster buffer.
  1127. 0400h corresponds to 4GB.
  1128. The file is read only.
  1129. What: /sys/bus/platform/drivers/ufshcd/*/wb_on
  1130. What: /sys/bus/platform/devices/*.ufs/wb_on
  1131. Date: January 2021
  1132. Contact: Bean Huo <[email protected]>
  1133. Description: This node is used to set or display whether UFS WriteBooster is
  1134. enabled. Echo 0 to this file to disable UFS WriteBooster or 1 to
  1135. enable it. The WriteBooster is enabled after power-on/reset,
  1136. however, it will be disabled/enable while CLK scaling down/up
  1137. (if the platform supports UFSHCD_CAP_CLK_SCALING). For a
  1138. platform that doesn't support UFSHCD_CAP_CLK_SCALING, we can
  1139. disable/enable WriteBooster through this sysfs node.
  1140. What: /sys/bus/platform/drivers/ufshcd/*/enable_wb_buf_flush
  1141. What: /sys/bus/platform/devices/*.ufs/enable_wb_buf_flush
  1142. Date: July 2022
  1143. Contact: Jinyoung Choi <[email protected]>
  1144. Description: This entry shows the status of WriteBooster buffer flushing
  1145. and it can be used to enable or disable the flushing.
  1146. If flushing is enabled, the device executes the flush
  1147. operation when the command queue is empty.
  1148. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_version
  1149. What: /sys/bus/platform/devices/*.ufs/device_descriptor/hpb_version
  1150. Date: June 2021
  1151. Contact: Daejun Park <[email protected]>
  1152. Description: This entry shows the HPB specification version.
  1153. The full information about the descriptor can be found in the UFS
  1154. HPB (Host Performance Booster) Extension specifications.
  1155. Example: version 1.2.3 = 0123h
  1156. The file is read only.
  1157. What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_control
  1158. What: /sys/bus/platform/devices/*.ufs/device_descriptor/hpb_control
  1159. Date: June 2021
  1160. Contact: Daejun Park <[email protected]>
  1161. Description: This entry shows an indication of the HPB control mode.
  1162. 00h: Host control mode
  1163. 01h: Device control mode
  1164. The file is read only.
  1165. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_region_size
  1166. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_region_size
  1167. Date: June 2021
  1168. Contact: Daejun Park <[email protected]>
  1169. Description: This entry shows the bHPBRegionSize which can be calculated
  1170. as in the following (in bytes):
  1171. HPB Region size = 512B * 2^bHPBRegionSize
  1172. The file is read only.
  1173. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_number_lu
  1174. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_number_lu
  1175. Date: June 2021
  1176. Contact: Daejun Park <[email protected]>
  1177. Description: This entry shows the maximum number of HPB LU supported by
  1178. the device.
  1179. 00h: HPB is not supported by the device.
  1180. 01h ~ 20h: Maximum number of HPB LU supported by the device
  1181. The file is read only.
  1182. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_subregion_size
  1183. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_subregion_size
  1184. Date: June 2021
  1185. Contact: Daejun Park <[email protected]>
  1186. Description: This entry shows the bHPBSubRegionSize, which can be
  1187. calculated as in the following (in bytes) and shall be a multiple of
  1188. logical block size:
  1189. HPB Sub-Region size = 512B x 2^bHPBSubRegionSize
  1190. bHPBSubRegionSize shall not exceed bHPBRegionSize.
  1191. The file is read only.
  1192. What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_max_active_regions
  1193. What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_max_active_regions
  1194. Date: June 2021
  1195. Contact: Daejun Park <[email protected]>
  1196. Description: This entry shows the maximum number of active HPB regions that
  1197. is supported by the device.
  1198. The file is read only.
  1199. What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_lu_max_active_regions
  1200. Date: June 2021
  1201. Contact: Daejun Park <[email protected]>
  1202. Description: This entry shows the maximum number of HPB regions assigned to
  1203. the HPB logical unit.
  1204. The file is read only.
  1205. What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_pinned_region_start_offset
  1206. Date: June 2021
  1207. Contact: Daejun Park <[email protected]>
  1208. Description: This entry shows the start offset of HPB pinned region.
  1209. The file is read only.
  1210. What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_number_pinned_regions
  1211. Date: June 2021
  1212. Contact: Daejun Park <[email protected]>
  1213. Description: This entry shows the number of HPB pinned regions assigned to
  1214. the HPB logical unit.
  1215. The file is read only.
  1216. What: /sys/class/scsi_device/*/device/hpb_stats/hit_cnt
  1217. Date: June 2021
  1218. Contact: Daejun Park <[email protected]>
  1219. Description: This entry shows the number of reads that changed to HPB read.
  1220. The file is read only.
  1221. What: /sys/class/scsi_device/*/device/hpb_stats/miss_cnt
  1222. Date: June 2021
  1223. Contact: Daejun Park <[email protected]>
  1224. Description: This entry shows the number of reads that cannot be changed to
  1225. HPB read.
  1226. The file is read only.
  1227. What: /sys/class/scsi_device/*/device/hpb_stats/rcmd_noti_cnt
  1228. Date: June 2021
  1229. Contact: Daejun Park <[email protected]>
  1230. Description: This entry shows the number of response UPIUs that has
  1231. recommendations for activating sub-regions and/or inactivating region.
  1232. The file is read only.
  1233. What: /sys/class/scsi_device/*/device/hpb_stats/rcmd_active_cnt
  1234. Date: June 2021
  1235. Contact: Daejun Park <[email protected]>
  1236. Description: For the HPB device control mode, this entry shows the number of
  1237. active sub-regions recommended by response UPIUs. For the HPB host control
  1238. mode, this entry shows the number of active sub-regions recommended by the
  1239. HPB host control mode heuristic algorithm.
  1240. The file is read only.
  1241. What: /sys/class/scsi_device/*/device/hpb_stats/rcmd_inactive_cnt
  1242. Date: June 2021
  1243. Contact: Daejun Park <[email protected]>
  1244. Description: For the HPB device control mode, this entry shows the number of
  1245. inactive regions recommended by response UPIUs. For the HPB host control
  1246. mode, this entry shows the number of inactive regions recommended by the
  1247. HPB host control mode heuristic algorithm.
  1248. The file is read only.
  1249. What: /sys/class/scsi_device/*/device/hpb_stats/map_req_cnt
  1250. Date: June 2021
  1251. Contact: Daejun Park <[email protected]>
  1252. Description: This entry shows the number of read buffer commands for
  1253. activating sub-regions recommended by response UPIUs.
  1254. The file is read only.
  1255. What: /sys/class/scsi_device/*/device/hpb_params/requeue_timeout_ms
  1256. Date: June 2021
  1257. Contact: Daejun Park <[email protected]>
  1258. Description: This entry shows the requeue timeout threshold for write buffer
  1259. command in ms. The value can be changed by writing an integer to
  1260. this entry.
  1261. What: /sys/bus/platform/drivers/ufshcd/*/attributes/max_data_size_hpb_single_cmd
  1262. What: /sys/bus/platform/devices/*.ufs/attributes/max_data_size_hpb_single_cmd
  1263. Date: June 2021
  1264. Contact: Daejun Park <[email protected]>
  1265. Description: This entry shows the maximum HPB data size for using a single HPB
  1266. command.
  1267. === ========
  1268. 00h 4KB
  1269. 01h 8KB
  1270. 02h 12KB
  1271. ...
  1272. FFh 1024KB
  1273. === ========
  1274. The file is read only.
  1275. What: /sys/bus/platform/drivers/ufshcd/*/flags/hpb_enable
  1276. What: /sys/bus/platform/devices/*.ufs/flags/hpb_enable
  1277. Date: June 2021
  1278. Contact: Daejun Park <[email protected]>
  1279. Description: This entry shows the status of HPB.
  1280. == ============================
  1281. 0 HPB is not enabled.
  1282. 1 HPB is enabled
  1283. == ============================
  1284. The file is read only.
  1285. Contact: Daniil Lunev <[email protected]>
  1286. What: /sys/bus/platform/drivers/ufshcd/*/capabilities/
  1287. What: /sys/bus/platform/devices/*.ufs/capabilities/
  1288. Date: August 2022
  1289. Description: The group represents the effective capabilities of the
  1290. host-device pair. i.e. the capabilities which are enabled in the
  1291. driver for the specific host controller, supported by the host
  1292. controller and are supported and/or have compatible
  1293. configuration on the device side.
  1294. Contact: Daniil Lunev <[email protected]>
  1295. What: /sys/bus/platform/drivers/ufshcd/*/capabilities/clock_scaling
  1296. What: /sys/bus/platform/devices/*.ufs/capabilities/clock_scaling
  1297. Date: August 2022
  1298. Contact: Daniil Lunev <[email protected]>
  1299. Description: Indicates status of clock scaling.
  1300. == ============================
  1301. 0 Clock scaling is not supported.
  1302. 1 Clock scaling is supported.
  1303. == ============================
  1304. The file is read only.
  1305. What: /sys/bus/platform/drivers/ufshcd/*/capabilities/write_booster
  1306. What: /sys/bus/platform/devices/*.ufs/capabilities/write_booster
  1307. Date: August 2022
  1308. Contact: Daniil Lunev <[email protected]>
  1309. Description: Indicates status of Write Booster.
  1310. == ============================
  1311. 0 Write Booster can not be enabled.
  1312. 1 Write Booster can be enabled.
  1313. == ============================
  1314. The file is read only.
  1315. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/activation_thld
  1316. Date: February 2021
  1317. Contact: Avri Altman <[email protected]>
  1318. Description: In host control mode, reads are the major source of activation
  1319. trials. Once this threshold hs met, the region is added to the
  1320. "to-be-activated" list. Since we reset the read counter upon
  1321. write, this include sending a rb command updating the region
  1322. ppn as well.
  1323. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/normalization_factor
  1324. Date: February 2021
  1325. Contact: Avri Altman <[email protected]>
  1326. Description: In host control mode, we think of the regions as "buckets".
  1327. Those buckets are being filled with reads, and emptied on write.
  1328. We use entries_per_srgn - the amount of blocks in a subregion as
  1329. our bucket size. This applies because HPB1.0 only handles
  1330. single-block reads. Once the bucket size is crossed, we trigger
  1331. a normalization work - not only to avoid overflow, but mainly
  1332. because we want to keep those counters normalized, as we are
  1333. using those reads as a comparative score, to make various decisions.
  1334. The normalization is dividing (shift right) the read counter by
  1335. the normalization_factor. If during consecutive normalizations
  1336. an active region has exhausted its reads - inactivate it.
  1337. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_enter
  1338. Date: February 2021
  1339. Contact: Avri Altman <[email protected]>
  1340. Description: Region deactivation is often due to the fact that eviction took
  1341. place: A region becomes active at the expense of another. This is
  1342. happening when the max-active-regions limit has been crossed.
  1343. In host mode, eviction is considered an extreme measure. We
  1344. want to verify that the entering region has enough reads, and
  1345. the exiting region has much fewer reads. eviction_thld_enter is
  1346. the min reads that a region must have in order to be considered
  1347. a candidate for evicting another region.
  1348. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_exit
  1349. Date: February 2021
  1350. Contact: Avri Altman <[email protected]>
  1351. Description: Same as above for the exiting region. A region is considered to
  1352. be a candidate for eviction only if it has fewer reads than
  1353. eviction_thld_exit.
  1354. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_ms
  1355. Date: February 2021
  1356. Contact: Avri Altman <[email protected]>
  1357. Description: In order not to hang on to "cold" regions, we inactivate
  1358. a region that has no READ access for a predefined amount of
  1359. time - read_timeout_ms. If read_timeout_ms has expired, and the
  1360. region is dirty, it is less likely that we can make any use of
  1361. HPB reading it so we inactivate it. Still, deactivation has
  1362. its overhead, and we may still benefit from HPB reading this
  1363. region if it is clean - see read_timeout_expiries.
  1364. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_expiries
  1365. Date: February 2021
  1366. Contact: Avri Altman <[email protected]>
  1367. Description: If the region read timeout has expired, but the region is clean,
  1368. just re-wind its timer for another spin. Do that as long as it
  1369. is clean and did not exhaust its read_timeout_expiries threshold.
  1370. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/timeout_polling_interval_ms
  1371. Date: February 2021
  1372. Contact: Avri Altman <[email protected]>
  1373. Description: The frequency with which the delayed worker that checks the
  1374. read_timeouts is awakened.
  1375. What: /sys/class/scsi_device/*/device/hpb_param_sysfs/inflight_map_req
  1376. Date: February 2021
  1377. Contact: Avri Altman <[email protected]>
  1378. Description: In host control mode the host is the originator of map requests.
  1379. To avoid flooding the device with map requests, use a simple throttling
  1380. mechanism that limits the number of inflight map requests.