Hi, Greg
On Mon, Nov 27, 2017 at 11:25:47AM +0000, Bean Huo (beanhuo) wrote:
Hi, all Is there someone knows if exists one utilis dedicated to UFS device, rather
than SCSI utils?
I have tried sg3-utils, but it is not convenient for the embedded ARM-based
system.
And also it doesn't support several UFS special command.
What specific UFS commands do you need to make to the device that the current driver does not support?
There are some UFS/vendor native commands. They are not SCSI based.
And yes, this is a trick question as there are about 4 different major forks that I know of of the UFS driver in different vendor trees, all of which support different types of UFS commands :(
If we don't have this kind of tool for UFS, is it necessary for us to develop a ufs-utils?
I doubt it, what neds to happen is getting all of the functionality that lives in these different forks all merged upstream into the in-kernel driver. Then I bet all of the needed functionality you are looking for will be there.
Sometimes customers tend to use user space tool to do some configuration. And especially, for example the UFS FFU.
good luck!
Thanks !
greg k-h
//Bean Huo
On Wed, Nov 29, 2017 at 03:39:19PM +0000, Bean Huo (beanhuo) wrote:
Hi, Greg
On Mon, Nov 27, 2017 at 11:25:47AM +0000, Bean Huo (beanhuo) wrote:
Hi, all Is there someone knows if exists one utilis dedicated to UFS device, rather
than SCSI utils?
I have tried sg3-utils, but it is not convenient for the embedded ARM-based
system.
And also it doesn't support several UFS special command.
What specific UFS commands do you need to make to the device that the current driver does not support?
There are some UFS/vendor native commands. They are not SCSI based.
Exactly what ones are missing? Again, there are numerous non-scsi UFS commands supported in sysfs files in the in-kernel, and lots in the different forks I mentioned. I bet if you pull all of those together, you should cover all of the ones you need, right?
And yes, this is a trick question as there are about 4 different major forks that I know of of the UFS driver in different vendor trees, all of which support different types of UFS commands :(
If we don't have this kind of tool for UFS, is it necessary for us to develop a ufs-utils?
I doubt it, what neds to happen is getting all of the functionality that lives in these different forks all merged upstream into the in-kernel driver. Then I bet all of the needed functionality you are looking for will be there.
Sometimes customers tend to use user space tool to do some configuration. And especially, for example the UFS FFU.
Again, that's fine, have you looked at what is currently present and what is missing?
thanks,
greg k-h
On Wed, 2017-11-29 at 15:39 +0000, Bean Huo (beanhuo) wrote:
Thread-Topic: UFS utilities Thread-Index: AdNpKDYJWTPjczfxQHC/pD9WNnnl4w==
Could you fix your mail transfer agent? It's using these non standard headers instead of the RFC mandated In-Reply-To: and References:
The problem is that this breaks threading on the public mailing lists and means most of us can't tie this email back to the original thread.
On Mon, Nov 27, 2017 at 11:25:47AM +0000, Bean Huo (beanhuo) wrote:
Hi, all Is there someone knows if exists one utilis dedicated to UFS device, rather than SCSI utils?
I have tried sg3-utils, but it is not convenient for the embedded ARM-based system.
And also it doesn't support several UFS special command.
What specific UFS commands do you need to make to the device that the current driver does not support?
There are some UFS/vendor native commands. They are not SCSI based.
Can you list them? The reason for asking is that SCSI-3 is pretty extensive in terms of management utilities, so any function you do with vendor native commands that matches an sg3utils function could be done by the latter instead via a SCSI translation layer.
James
Hi,
On 11/30/17, Bean Huo (beanhuo) beanhuo@micron.com wrote:
Hi, Greg
On Mon, Nov 27, 2017 at 11:25:47AM +0000, Bean Huo (beanhuo) wrote:
Hi, all Is there someone knows if exists one utilis dedicated to UFS device, rather
than SCSI utils?
I have tried sg3-utils, but it is not convenient for the embedded ARM-based
system.
And also it doesn't support several UFS special command.
What specific UFS commands do you need to make to the device that the current driver does not support?
There are some UFS/vendor native commands. They are not SCSI based.
UFS command means uic/dme commands?. AFAIK, many uic/dme commands need pre/post operation of SoC related. So, it would be need modify sg3-utils or another.
Therefore, IMHO, I don't know why we need it. But if you still want it, You'll be need to modify/create user application and modified ufs driver for your needs.
About vendor command, it's vendor specific. It'll be possible to support by sg3-utils. And it need modify too.
And yes, this is a trick question as there are about 4 different major forks that I know of of the UFS driver in different vendor trees, all of which support different types of UFS commands :(
If we don't have this kind of tool for UFS, is it necessary for us to develop a ufs-utils?
I doubt it, what neds to happen is getting all of the functionality that lives in these different forks all merged upstream into the in-kernel driver. Then I bet all of the needed functionality you are looking for will be there.
Sometimes customers tend to use user space tool to do some configuration. And especially, for example the UFS FFU.
As i knew, in case of FFU, it's possible to support by sg_write_buffer.
good luck!
Thanks !
greg k-h
//Bean Huo
WBR, Kyuho Choi
linux-stable-mirror@lists.linaro.org