RE: [EXT] RE: [PATCH] mmc-utils: enable CMD25 as optional for FFU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Avri,

> -----Original Message-----
> From: linux-mmc-owner@xxxxxxxxxxxxxxx <linux-mmc-
> owner@xxxxxxxxxxxxxxx> On Behalf Of Avri Altman
> Sent: Friday, March 29, 2019 8:16 AM
> To: Shivamurthy Shastri (sshivamurthy) <sshivamurthy@xxxxxxxxxx>; Chris
> Ball <chris@xxxxxxxxxx>; linux-mmc@xxxxxxxxxxxxxxx
> Cc: Avi Shchislowski <Avi.Shchislowski@xxxxxxx>
> Subject: [EXT] RE: [PATCH] mmc-utils: enable CMD25 as optional for FFU
> 
> >
> > As per specification, the host can use either CMD24 or CMD25 for the
> > FFU. CMD25 is better option as it can program the firmware image in one
> > go.
> >
> > CMD25 is enabled as optional and user can use this by giving optional
> > parameter '-c'.
> > Example: mmc ffu -c <firmware_image> <device>
> >
> > Signed-off-by: Shivamurthy Shastri <sshivamurthy@xxxxxxxxxx>
> Why make it optional?

I was not sure about the reason behind using CMD24 instead of CMD25.

> If you indeed see a considerable performance gain, just use cmd25 instead.
> Can you share those improvement rates that you noticed while testing?

The code is like below:

clock_gettime(CLOCK_REALTIME, &start);
while (chunk_size > 0) {
...
}
clock_gettime(CLOCK_REALTIME, &end);
.....

In the case of CMD24 completion took 635msec and in the case of CMD25
completion took 20msec.

> 
> Thanks,
> Avri

Thanks,
Shiva




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux