mmc: core: Support packed command for eMMC4.5 device
Quoted 6 lines
This patch supports packed command of eMMC4.5 device. Several reads(or writes) can be grouped in packed command and all data of the individual commands can be sent in a single transfer on the bus.
Signed-off-by Seungwon Jeon <[email protected]>
Quoted 9 lines
--- drivers/mmc/card/block.c | 496 +++++++++++++++++++++++++++++++++++++++++-- drivers/mmc/card/queue.c | 48 ++++- drivers/mmc/card/queue.h | 13 ++ drivers/mmc/core/mmc_ops.c | 1 + include/linux/mmc/core.h | 4 + 5 files changed, 535 insertions(+), 27 deletions(-)
Hi,
We ran performance tests on the packed commands patch. We found out that enabling the read packing didn't improve the performance in any of the scenarios we ran (see the detailed results below). Therefore, we suggest to move the read packing code to a different patch and approve only the write packing code for now. The read packing adds complexity to the code and we don't see a point in adding it while the intention is to disable it.
Test results:
Long read operation:
----------------------
no-packing: 39.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 39.5 MB/s packed commands patch + enabling only READ packing: 39.5 MB/s
Several parallel read operations (sum of all the read throughputs):
---------------------------
no-packing: 42.6 MB/s
packed commands patch(both READ and WRITE packing are enabled): 38 MB/s packed commands patch + enabling only READ packing: 38.2 MB/s
Parallel long read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 23.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 12.6 MB/s packed commands patch + enabling only READ packing: 12.5 MB/s
Parallel short read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 22.9 MB/s
packed commands patch (both READ and WRITE packing are enabled): 8.4 MB/s packed commands patch + enabling only READ packing: 8.6 MB/s
Several Parallel short read and short write operations (sum of all the read throughputs):
--------------------------------------------------------------------------
no-packing: 41.6 MB/s
packed commands patch (both READ and WRITE packing are enabled): 35 MB/s packed commands patch + enabling only READ packing: 36 MB/s
Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Hi. merez.
Would you share random read speed with us ?
And Write speed also..
Thanks.
2012/3/1 <[email protected]>:
Quoted 71 lines
Quoted 6 lines
This patch supports packed command of eMMC4.5 device. Several reads(or writes) can be grouped in packed command and all data of the individual commands can be sent in a single transfer on the bus.
Signed-off-by Seungwon Jeon <[email protected]>Quoted 9 lines
---
drivers/mmc/card/block.c | 496
+++++++++++++++++++++++++++++++++++++++++--
drivers/mmc/card/queue.c | 48 ++++-
drivers/mmc/card/queue.h | 13 ++
drivers/mmc/core/mmc_ops.c | 1 +
include/linux/mmc/core.h | 4 +5 files changed, 535 insertions(+), 27 deletions(-)Hi,
We ran performance tests on the packed commands patch. We found out that enabling the read packing didn't improve the performance in any of the scenarios we ran (see the detailed results below). Therefore, we suggest to move the read packing code to a different patch and approve only the write packing code for now. The read packing adds complexity to the code and we don't see a point in adding it while the intention is to disable it.
Test results:
Long read operation:
----------------------
no-packing: 39.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 39.5 MB/s packed commands patch + enabling only READ packing: 39.5 MB/sSeveral parallel read operations (sum of all the read throughputs):
---------------------------
no-packing: 42.6 MB/s
packed commands patch(both READ and WRITE packing are enabled): 38 MB/s packed commands patch + enabling only READ packing: 38.2 MB/sParallel long read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 23.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 12.6 MB/s packed commands patch + enabling only READ packing: 12.5 MB/sParallel short read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 22.9 MB/s
packed commands patch (both READ and WRITE packing are enabled): 8.4 MB/s packed commands patch + enabling only READ packing: 8.6 MB/sSeveral Parallel short read and short write operations (sum of all the read throughputs):
--------------------------------------------------------------------------
no-packing: 41.6 MB/s
packed commands patch (both READ and WRITE packing are enabled): 35 MB/s packed commands patch + enabling only READ packing: 36 MB/sThanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Our tests showed that the write packing improved the performance of the write sequential operations:
Long write operation:
----------------------
no-packing: 15.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 23.3 MB/s
Several parallel write operations (sum of all the write throughputs):
---------------------------
no-packing: 17.1 MB/s
packed commands patch(both READ and WRITE packing are enabled): 25 MB/s
Parallel long read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 12.2 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.3 MB/s
Parallel short read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 15.4 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.4 MB/s
Several Parallel short read and short write operations (sum of all the write throughputs):
--------------------------------------------------------------------------
no-packing: 12.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 15.5 MB/s
Random read and random write:
------------------------------
I checked the random read and random write IOPs by using the IOZONE application. There was a slight degradation in the read results due to the packing and no improvements in the write results.
The results are:
IOZONE file size of 100M:
no-packing: random read: 4675, random write: 729
packed commands patch (both READ and WRITE packing are enabled): random
read: 4557 random write: 723
IOZONE file size of 256M:
no-packing: random read: 4632, random write: 744
packed commands patch (both READ and WRITE packing are enabled): random
read: 4498, random write: 742
Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Quoted 88 lines
Hi. merez.
Would you share random read speed with us ?
And Write speed also..
Thanks.
2012/3/1 <[email protected]>:
Quoted 70 lines
Quoted 6 lines
This patch supports packed command of eMMC4.5 device. Several reads(or writes) can be grouped in packed command and all data of the individual commands can be sent in a single transfer on the bus.
Signed-off-by Seungwon Jeon <[email protected]>Quoted 9 lines
---
 drivers/mmc/card/block.c  |  496
+++++++++++++++++++++++++++++++++++++++++--
 drivers/mmc/card/queue.c  |  48 ++++-
 drivers/mmc/card/queue.h  |  13 ++
 drivers/mmc/core/mmc_ops.c |   1 +
 include/linux/mmc/core.h  |   4 +
 5 files changed, 535 insertions(+), 27 deletions(-)Hi,
We ran performance tests on the packed commands patch. We found out that enabling the read packing didn't improve the performance in any of the scenarios we ran (see the detailed results below). Therefore, we suggest to move the read packing code to a different patch and approve only the write packing code for now. The read packing adds complexity to the code and we don't see a point in adding it while the intention is to disable it.
Test results:
Long read operation:
----------------------
no-packing: 39.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 39.5 MB/s
packed commands patch + enabling only READ packing: 39.5 MB/sSeveral parallel read operations (sum of all the read throughputs):
---------------------------
no-packing: 42.6 MB/s
packed commands patch(both READ and WRITE packing are enabled): 38 MB/s packed commands patch + enabling only READ packing: 38.2 MB/sParallel long read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 23.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 12.6 MB/s
packed commands patch + enabling only READ packing: 12.5 MB/sParallel short read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 22.9 MB/s
packed commands patch (both READ and WRITE packing are enabled): 8.4 MB/s
packed commands patch + enabling only READ packing: 8.6 MB/sSeveral Parallel short read and short write operations (sum of all the read throughputs):
--------------------------------------------------------------------------
no-packing: 41.6 MB/s
packed commands patch (both READ and WRITE packing are enabled): 35 MB/s packed commands patch + enabling only READ packing: 36 MB/sThanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora ForumQuoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Merez
Quoted 25 lines · On 2 March 2012 19:56, <[email protected]> wrote:
Hi,
Our tests showed that the write packing improved the performance of the write sequential operations:
Long write operation:
----------------------
no-packing: 15.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 23.3 MB/sSeveral parallel write operations (sum of all the write throughputs):
---------------------------
no-packing: 17.1 MB/s
packed commands patch(both READ and WRITE packing are enabled): 25 MB/sParallel long read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 12.2 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.3 MB/sParallel short read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 15.4 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.4 MB/s
Quoted 6 lines
Several Parallel short read and short write operations (sum of all the write throughputs):
--------------------------------------------------------------------------
no-packing: 12.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 15.5 MB/s
How did you perform the above tests ?
Quoted 118 lines
Random read and random write:
------------------------------
I checked the random read and random write IOPs by using the IOZONE application. There was a slight degradation in the read results due to the packing and no improvements in the write results.The results are:
IOZONE file size of 100M:
no-packing: random read: 4675, random write: 729
packed commands patch (both READ and WRITE packing are enabled): random
read: 4557 random write: 723IOZONE file size of 256M:
no-packing: random read: 4632, random write: 744
packed commands patch (both READ and WRITE packing are enabled): random
read: 4498, random write: 742Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora ForumQuoted 79 lines
Hi. merez.
Would you share random read speed with us ?
And Write speed also..
Thanks.
2012/3/1 <[email protected]>:
Quoted 70 lines
Quoted 6 lines
This patch supports packed command of eMMC4.5 device. Several reads(or writes) can be grouped in packed command and all data of the individual commands can be sent in a single transfer on the bus.
Signed-off-by Seungwon Jeon <[email protected]>Quoted 9 lines
---
drivers/mmc/card/block.c | 496
+++++++++++++++++++++++++++++++++++++++++--
drivers/mmc/card/queue.c | 48 ++++-
drivers/mmc/card/queue.h | 13 ++
drivers/mmc/core/mmc_ops.c | 1 +
include/linux/mmc/core.h | 4 +5 files changed, 535 insertions(+), 27 deletions(-)Hi,
We ran performance tests on the packed commands patch. We found out that enabling the read packing didn't improve the performance in any of the scenarios we ran (see the detailed results below). Therefore, we suggest to move the read packing code to a different patch and approve only the write packing code for now. The read packing adds complexity to the code and we don't see a point in adding it while the intention is to disable it.
Test results:
Long read operation:
----------------------
no-packing: 39.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 39.5 MB/s
packed commands patch + enabling only READ packing: 39.5 MB/sSeveral parallel read operations (sum of all the read throughputs):
---------------------------
no-packing: 42.6 MB/s
packed commands patch(both READ and WRITE packing are enabled): 38 MB/s packed commands patch + enabling only READ packing: 38.2 MB/sParallel long read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 23.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 12.6 MB/s
packed commands patch + enabling only READ packing: 12.5 MB/sParallel short read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 22.9 MB/s
packed commands patch (both READ and WRITE packing are enabled): 8.4 MB/s
packed commands patch + enabling only READ packing: 8.6 MB/sSeveral Parallel short read and short write operations (sum of all the read throughputs):
--------------------------------------------------------------------------
no-packing: 41.6 MB/s
packed commands patch (both READ and WRITE packing are enabled): 35 MB/s packed commands patch + enabling only READ packing: 36 MB/sThanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora ForumQuoted 9 lines
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 39 lines
Hi Merez
Quoted 28 lines · On 2 March 2012 19:56, <[email protected]> wrote:
Hi,
Our tests showed that the write packing improved the performance of the write sequential operations:
Long write operation:
----------------------
no-packing: 15.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 23.3 MB/sSeveral parallel write operations (sum of all the write throughputs):
---------------------------
no-packing: 17.1 MB/s
packed commands patch(both READ and WRITE packing are enabled): 25 MB/sParallel long read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 12.2 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.3 MB/sParallel short read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 15.4 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.4 MB/sQuoted 7 lines
Several Parallel short read and short write operations (sum of all the write throughputs):
--------------------------------------------------------------------------
no-packing: 12.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 15.5 MB/s
Quoted 1 line
How did you perform the above tests ?
The sequential tests were performed with the lmdd application. Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Namjae Jeon
Reviewed-byHi. Merez.
Thanks a lot about your performance measurement.
I think that your measurement is enough and correct and the firmware of mmc vender should be optimized or change properly rather than modifying the current patch.
And currently we can use only write packed cmd by my suggestion.
I would like to add my reviewd-by tag in updated patches also.
Thanks.
2012/3/2 <[email protected]>:
Quoted 145 lines
Hi,
Our tests showed that the write packing improved the performance of the write sequential operations:
Long write operation:
----------------------
no-packing: 15.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 23.3 MB/sSeveral parallel write operations (sum of all the write throughputs):
---------------------------
no-packing: 17.1 MB/s
packed commands patch(both READ and WRITE packing are enabled): 25 MB/sParallel long read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 12.2 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.3 MB/sParallel short read and long write operations (write throughput):
-----------------------------------------------------------------
no-packing: 15.4 MB/s
packed commands patch (both READ and WRITE packing are enabled): 16.4 MB/sSeveral Parallel short read and short write operations (sum of all the write throughputs):
--------------------------------------------------------------------------
no-packing: 12.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 15.5 MB/sRandom read and random write:
------------------------------
I checked the random read and random write IOPs by using the IOZONE application. There was a slight degradation in the read results due to the packing and no improvements in the write results.The results are:
IOZONE file size of 100M:
no-packing: random read: 4675, random write: 729
packed commands patch (both READ and WRITE packing are enabled): random
read: 4557 random write: 723IOZONE file size of 256M:
no-packing: random read: 4632, random write: 744
packed commands patch (both READ and WRITE packing are enabled): random
read: 4498, random write: 742Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora ForumQuoted 88 lines
Hi. merez.
Would you share random read speed with us ?
And Write speed also..
Thanks.
2012/3/1 <[email protected]>:
Quoted 70 lines
Quoted 6 lines
This patch supports packed command of eMMC4.5 device. Several reads(or writes) can be grouped in packed command and all data of the individual commands can be sent in a single transfer on the bus.
Signed-off-by Seungwon Jeon <[email protected]>Quoted 9 lines
---
drivers/mmc/card/block.c | 496
+++++++++++++++++++++++++++++++++++++++++--
drivers/mmc/card/queue.c | 48 ++++-
drivers/mmc/card/queue.h | 13 ++
drivers/mmc/core/mmc_ops.c | 1 +
include/linux/mmc/core.h | 4 +5 files changed, 535 insertions(+), 27 deletions(-)Hi,
We ran performance tests on the packed commands patch. We found out that enabling the read packing didn't improve the performance in any of the scenarios we ran (see the detailed results below). Therefore, we suggest to move the read packing code to a different patch and approve only the write packing code for now. The read packing adds complexity to the code and we don't see a point in adding it while the intention is to disable it.
Test results:
Long read operation:
----------------------
no-packing: 39.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 39.5 MB/s
packed commands patch + enabling only READ packing: 39.5 MB/sSeveral parallel read operations (sum of all the read throughputs):
---------------------------
no-packing: 42.6 MB/s
packed commands patch(both READ and WRITE packing are enabled): 38 MB/s packed commands patch + enabling only READ packing: 38.2 MB/sParallel long read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 23.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 12.6 MB/s
packed commands patch + enabling only READ packing: 12.5 MB/sParallel short read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 22.9 MB/s
packed commands patch (both READ and WRITE packing are enabled): 8.4 MB/s
packed commands patch + enabling only READ packing: 8.6 MB/sSeveral Parallel short read and short write operations (sum of all the read throughputs):
--------------------------------------------------------------------------
no-packing: 41.6 MB/s
packed commands patch (both READ and WRITE packing are enabled): 35 MB/s packed commands patch + enabling only READ packing: 36 MB/sThanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora ForumQuoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines
Hi. Merez.
Thanks a lot about your performance measurement.
I think that your measurement is enough and correct and the firmware of mmc vender should be optimized or change properly rather than modifying the current patch.
Quoted 7 lines
And currently we can use only write packed cmd by my suggestion.
I would like to add my reviewd-by tag in updated patches also.
Reviewed-by Namjae Jeon <[email protected]>Thanks.
I tend to disagree. Adding a massive amount of code that would be disabled can be risky. In case this code will not be in use it will not be properly tested and its reliability will be uncertain.
Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Quoted 12 lines · Maya Erez
Quoted 12 lines
Hi. Merez.
Thanks a lot about your performance measurement.
I think that your measurement is enough and correct and the firmware of mmc vender should be optimized or change properly rather than modifying the current patch.
And currently we can use only write packed cmd by my suggestion.
I would like to add my reviewd-by tag in updated patches also.
Quoted 8 lines
Quoted 3 lines
Reviewed-by Namjae Jeon <[email protected]>Thanks.
I tend to disagree. Adding a massive amount of code that would be disabled can be risky. In case this code will not be in use it will not be properly tested and its reliability will be uncertain.
If you found something to be correct, please let me know that. It would be rightly appreciated.
Best regards,
Seungwon Jeon.
Quoted 10 lines
Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 23 lines
Quoted 14 lines · Maya Erez
Quoted 14 lines
Hi. Merez.
Thanks a lot about your performance measurement.
I think that your measurement is enough and correct and the firmware of mmc vender should be optimized or change properly rather than modifying the current patch.
And currently we can use only write packed cmd by my suggestion.
I would like to add my reviewd-by tag in updated patches also.
Reviewed-by Namjae Jeon <[email protected]>Quoted 8 lines
Quoted 1 line
Thanks.
I tend to disagree. Adding a massive amount of code that would be disabled
can be risky. In case this code will not be in use it will not be properly
tested and its reliability will be uncertain.
Quoted 5 lines
If you found something to be correct, please let me know that. It would be rightly appreciated.
Best regards,
Seungwon Jeon.
Hi Jeon,
The write packing code looks good to me.
However, the separation of read and write packing to different patches is very important to us.
As I specified before, we decided to enable only the write packing. We plan to thoroughly test the write packing (edge cases and error handling) and will not test the read packing. Therefore we would like to have the ability to get only the write packing code.
In my previous comment I talked about the risk of mainlining a “dead” code. Every feature that is integrated is considered to be fully tested and in the future it might be enabled, assuming that is was already tested.
Can you please specify how you tested the read and write packing? Did you perform edge cases and error handling tests? Do you have test code that can be shared?
Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Quoted 30 lines · Maya Erez
Quoted 23 lines
Quoted 14 lines · Maya Erez
Quoted 14 lines
Hi. Merez.
Thanks a lot about your performance measurement.
I think that your measurement is enough and correct and the firmware of mmc vender should be optimized or change properly rather than modifying the current patch.
And currently we can use only write packed cmd by my suggestion.
I would like to add my reviewd-by tag in updated patches also.
Reviewed-by Namjae Jeon <[email protected]>Quoted 8 lines
Quoted 1 line
Thanks.
I tend to disagree. Adding a massive amount of code that would be disabled
can be risky. In case this code will not be in use it will not be properly
tested and its reliability will be uncertain.Quoted 5 lines
If you found something to be correct, please let me know that. It would be rightly appreciated.
Best regards,
Seungwon Jeon.Hi Jeon,
Quoted 7 lines
The write packing code looks good to me.
However, the separation of read and write packing to different patches is very important to us.
As I specified before, we decided to enable only the write packing. We plan to thoroughly test the write packing (edge cases and error handling) and will not test the read packing. Therefore we would like to have the ability to get only the write packing code.
As Namjae Jeon mentioned, how about this?
I think only MMC_CAP2_PACKED_WR can be set for enabling the write packing easily. In my case, tested eMMC device is not optimized for packed read.
So I couldn't confirm that this patch is effective in packed read.
I think packed read as well as packed write of this patch conformed with the eMMC4.5 spec though. I wonder that your eMMC device has the good ability in both operations.
It is difficult to decide the performance with excluding the device.
Soon I will test it with the improved sample for packed read.
Quoted 4 lines
In my previous comment I talked about the risk of mainlining a “dead” code. Every feature that is integrated is considered to be fully tested and in the future it might be enabled, assuming that is was already tested.
Right! It is desirable and I hope that.
Do you think this patch have the potential problem?
As I also ask you, if you have tested and find something is incorrect, we can discuss that. It was submitted for that purpose.
Quoted 3 lines
Can you please specify how you tested the read and write packing? Did you perform edge cases and error handling tests? Do you have test code that can be shared?
Basically, It has been tested with several I/O benchmark tool. Some misvalued I/O timing and wrong argument for packed command was used for triggering the error case.
Best regards,
Seungwon Jeon.
Quoted 11 lines
Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 41 lines
Quoted 31 lines · Maya Erez
Quoted 6 lines
Quoted 5 lines · Maya Erez
Quoted 5 lines
Hi. Merez.
Thanks a lot about your performance measurement.
I think that your measurement is enough and correct and the
firmware
Quoted 17 lines
Quoted 9 lines
Quoted 9 lines
of mmc vender should be optimized or change properly rather than modifying the current patch.
And currently we can use only write packed cmd by my suggestion.
I would like to add my reviewd-by tag in updated patches also.
Reviewed-by Namjae Jeon <[email protected]>Quoted 8 lines
Quoted 1 line
Thanks.
I tend to disagree. Adding a massive amount of code that would be disabled
can be risky. In case this code will not be in use it will not be properly
tested and its reliability will be uncertain.Quoted 5 lines
If you found something to be correct, please let me know that. It would be rightly appreciated.
Best regards,
Seungwon Jeon.Hi Jeon,
Quoted 9 lines
The write packing code looks good to me.
However, the separation of read and write packing to different patches is
very important to us.
As I specified before, we decided to enable only the write packing. We plan to thoroughly test the write packing (edge cases and error handling)
and will not test the read packing. Therefore we would like to have the ability to get only the write packing code.
Quoted 5 lines
As Namjae Jeon mentioned, how about this?
I think onlyMMC_CAP2_PACKED_WRcan be set for enabling the write packing easily.
In my case, tested eMMC device is not optimized for packed read. So I couldn't confirm that this patch is effective in packed read.
This supports my suggestion to separate the write and read packing. Let's wait for the read packing to be proven as effective before mainlining it. Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Quoted 43 lines
I think packed read as well as packed write of this patch conformed with the eMMC4.5 spec though.
I wonder that your eMMC device has the good ability in both operations. It is difficult to decide the performance with excluding the device. Soon I will test it with the improved sample for packed read.Quoted 4 lines
In my previous comment I talked about the risk of mainlining a “dead” code. Every feature that is integrated is considered to be fully tested and in the future it might be enabled, assuming that is was already tested.
Right! It is desirable and I hope that.
Do you think this patch have the potential problem?
As I also ask you, if you have tested and find something is incorrect, we can discuss that.
It was submitted for that purpose.Quoted 4 lines
Can you please specify how you tested the read and write packing? Did you
perform edge cases and error handling tests? Do you have test code that can be shared?Basically, It has been tested with several I/O benchmark tool. Some misvalued I/O timing and wrong argument for packed command was used for triggering the error case.
Best regards,
Seungwon Jeon.Quoted 11 lines
Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 17 lines · On 29 February 2012 23:40, <[email protected]> wrote:
Quoted 6 lines
This patch supports packed command of eMMC4.5 device. Several reads(or writes) can be grouped in packed command and all data of the individual commands can be sent in a single transfer on the bus.
Signed-off-by Seungwon Jeon <[email protected]>Quoted 9 lines
---
drivers/mmc/card/block.c | 496
+++++++++++++++++++++++++++++++++++++++++--
drivers/mmc/card/queue.c | 48 ++++-
drivers/mmc/card/queue.h | 13 ++
drivers/mmc/core/mmc_ops.c | 1 +
include/linux/mmc/core.h | 4 +5 files changed, 535 insertions(+), 27 deletions(-)Hi,
Quoted 7 lines
We ran performance tests on the packed commands patch. We found out that enabling the read packing didn't improve the performance in any of the scenarios we ran (see the detailed results below). Therefore, we suggest to move the read packing code to a different patch and approve only the write packing code for now. The read packing adds complexity to the code and we don't see a point in adding it while the intention is to disable it.
Have you seen improvement in the write packing ?
Quoted 47 lines
Test results:
Long read operation:
----------------------
no-packing: 39.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 39.5 MB/s packed commands patch + enabling only READ packing: 39.5 MB/sSeveral parallel read operations (sum of all the read throughputs):
---------------------------
no-packing: 42.6 MB/s
packed commands patch(both READ and WRITE packing are enabled): 38 MB/s packed commands patch + enabling only READ packing: 38.2 MB/sParallel long read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 23.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 12.6 MB/s packed commands patch + enabling only READ packing: 12.5 MB/sParallel short read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 22.9 MB/s
packed commands patch (both READ and WRITE packing are enabled): 8.4 MB/s packed commands patch + enabling only READ packing: 8.6 MB/sSeveral Parallel short read and short write operations (sum of all the read throughputs):
--------------------------------------------------------------------------
no-packing: 41.6 MB/s
packed commands patch (both READ and WRITE packing are enabled): 35 MB/s packed commands patch + enabling only READ packing: 36 MB/sThanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 17 lines · Maya Erez
Quoted 6 lines
This patch supports packed command of eMMC4.5 device. Several reads(or writes) can be grouped in packed command and all data of the individual commands can be sent in a single transfer on the bus.
Signed-off-by Seungwon Jeon <[email protected]>Quoted 9 lines
--- drivers/mmc/card/block.c | 496 +++++++++++++++++++++++++++++++++++++++++-- drivers/mmc/card/queue.c | 48 ++++- drivers/mmc/card/queue.h | 13 ++ drivers/mmc/core/mmc_ops.c | 1 + include/linux/mmc/core.h | 4 + 5 files changed, 535 insertions(+), 27 deletions(-)Hi,
Quoted 8 lines
We ran performance tests on the packed commands patch. We found out that enabling the read packing didn't improve the performance in any of the scenarios we ran (see the detailed results below). Therefore, we suggest to move the read packing code to a different patch and approve only the write packing code for now. The read packing adds complexity to the code and we don't see a point in adding it while the intention is to disable it.
Thank you for test.
What is your test tool?
Is there any improvement point we can discuss for packed read?
Thanks,
Seungwon Jeon.
Quoted 46 lines
Test results:
Long read operation:
----------------------
no-packing: 39.5 MB/s
packed commands patch (both READ and WRITE packing are enabled): 39.5 MB/s packed commands patch + enabling only READ packing: 39.5 MB/sSeveral parallel read operations (sum of all the read throughputs):
---------------------------
no-packing: 42.6 MB/s
packed commands patch(both READ and WRITE packing are enabled): 38 MB/s packed commands patch + enabling only READ packing: 38.2 MB/sParallel long read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 23.8 MB/s
packed commands patch (both READ and WRITE packing are enabled): 12.6 MB/s packed commands patch + enabling only READ packing: 12.5 MB/sParallel short read and long write operations (read throughput):
-----------------------------------------------------------------
no-packing: 22.9 MB/s
packed commands patch (both READ and WRITE packing are enabled): 8.4 MB/s packed commands patch + enabling only READ packing: 8.6 MB/sSeveral Parallel short read and short write operations (sum of all the read throughputs):
--------------------------------------------------------------------------
no-packing: 41.6 MB/s
packed commands patch (both READ and WRITE packing are enabled): 35 MB/s packed commands patch + enabling only READ packing: 36 MB/sThanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html