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