Re: [PATCH V6] scsi: ufs: Add configfs support for UFS provisioning
From: Bart Van Assche
Date: Mon Jul 16 2018 - 10:03:03 EST
On Mon, 2018-07-16 at 15:13 +-0530, Sayali Lokhande wrote:
+AD4- +- This file shows the current ufs configuration descriptor set in device.
+AD4- +- This can be used to provision ufs device if bConfigDescrLock is 0.
+AD4- +- For more details, refer 14.1.6.3 Configuration Descriptor and
+AD4- +- Table 14-12 - Unit Descriptor configurable parameters from specs for
+AD4- +- description of each configuration descriptor parameter.
+AD4- +- Configuration descriptor buffer needs to be passed in space separated
+AD4- +- format specificied as below:
+AD4- +- echo +ADw-bLength+AD4- +ADw-bDescriptorIDN+AD4- +ADw-bConfDescContinue+AD4- +ADw-bBootEnable+AD4-
+AD4- +- +ADw-bDescrAccessEn+AD4- +ADw-bInitPowerMode+AD4- +ADw-bHighPriorityLUN+AD4-
+AD4- +- +ADw-bSecureRemovalType+AD4- +ADw-bInitActiveICCLevel+AD4- +ADw-wPeriodicRTCUpdate+AD4-
+AD4- +- +ADw-0Bh:0Fh+AF8-ReservedAs+AF8-0+AD4- +ADw-bLUEnable+AD4- +ADw-bBootLunID+AD4- +ADw-bLUWriteProtect+AD4-
+AD4- +- +ADw-bMemoryType+AD4- +ADw-dNumAllocUnits+AD4- +ADw-bDataReliability+AD4- +ADw-bLogicalBlockSize+AD4-
+AD4- +- +ADw-bProvisioningType+AD4- +ADw-wContextCapabilities+AD4- +ADw-0Dh:0Fh+AF8-ReservedAs+AF8-0+AD4-
+AD4- +- +AD4- /config/XXXX.ufshc/ufs+AF8-provision
I think the person who suggested to use configfs expected you to create one configfs
attribute per value instead of writing a long list of values into a single configfs
attribute.
Bart.