mmc: support packed write command for eMMC4.5 device
One minor comment below:
Review static int mmc_blk_issue_rw_rq(struct mmc_queue
Quoted 1 line
(quoted diff) +0
-0@@ -1278,9 +1609,15 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue
*mq, struct request *rqc)
Review static int mmc_blk_issue_rw_rq(struct mmc_queue · line 1609
Quoted 1 line
(quoted diff) +0
-0(card->ext_csd.data_sector_size == 4096)) {
You can use mmc_large_sec here (instead of card->ext_csd.data_sector_size == 4096)
Thanks,
Maya
Signature · 2 lines
Sent by consultant of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Quoted 7 lines · Maya
One minor comment below:
Review static int mmc_blk_issue_rw_rq(struct mmc_queue
Quoted 1 line
(quoted diff) +0
-0@@ -1278,9 +1609,15 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue*mq, struct request *rqc)
Review static int mmc_blk_issue_rw_rq(struct mmc_queue · line 1609
Quoted 1 line
(quoted diff) +0
-0(card->ext_csd.data_sector_size == 4096)) {You can use
mmc_large_sechere (instead ofcard->ext_csd.data_sector_size== 4096)
Yes, but this line is kept due to another issue related with 4KB sector.
Thanks,
Seungwon Jeon
Quoted 15 lines
Thanks,
Maya--
Sent by consultant of 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 5 lines · Seungwon Jeon
Quoted 4 lines · Maya
One minor comment below:
Review static int mmc_blk_issue_rw_rq(struct mmc_queue
Quoted 1 line
(quoted diff) +0
-0@@ -1278,9 +1609,15 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue*mq, struct request *rqc)
Quoted 8 lines
Quoted 4 lines
Review static int mmc_blk_issue_rw_rq(struct mmc_queue · line 1609
Quoted 1 line
(quoted diff) +0
-0(card->ext_csd.data_sector_size == 4096)) {You can use
mmc_large_sechere (instead ofcard->ext_csd.data_sector_size
== 4096)Yes, but this line is kept due to another issue related with 4KB sector.
Thanks,
Seungwon Jeon
Hi,
I'm not sure I understand your reply. mmc_large_sec does exactly what the if here does.
My suggestion is to replace the code with the new function you added. I agree it's an old code but this way the code will be consistent and mmc_large_sec will be used in every place we would like to check if the sector size is 4K.
Thanks,
Maya
Signature · 2 lines
Sent by consultant of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Quoted 14 lines · Maya
Quoted 5 lines · Seungwon Jeon
Quoted 4 lines · Maya
One minor comment below:
Review static int mmc_blk_issue_rw_rq(struct mmc_queue
Quoted 1 line
(quoted diff) +0
-0@@ -1278,9 +1609,15 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue*mq, struct request *rqc)
Quoted 8 lines
Quoted 4 lines
Review static int mmc_blk_issue_rw_rq(struct mmc_queue · line 1609
Quoted 1 line
(quoted diff) +0
-0(card->ext_csd.data_sector_size == 4096)) {You can use
mmc_large_sechere (instead ofcard->ext_csd.data_sector_size
== 4096)Yes, but this line is kept due to another issue related with 4KB sector.
Thanks,
Seungwon Jeon
Quoted 8 lines
Hi,
I'm not sure I understand your reply.
mmc_large_secdoes exactly what the if here does.
My suggestion is to replace the code with the new function you added. I agree it's an old code but this way the code will be consistent andmmc_large_secwill be used in every place we would like to check if the sector size is 4K.
I just remained. The code you pointed can be replaced. Regardless this review, I'll rework.
eMMC 4.51 spec was updated in June and there is some changes. Spec mentions packed header is 8 blocks in 4KB native device. I'll apply this change.
Thanks,
Seungwon Jeon
Quoted 12 lines
Thanks,
Maya--
Sent by consultant of 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 26 lines · Seungwon Jeon
Quoted 18 lines · Maya
Quoted 4 lines · Seungwon Jeon
Quoted 3 lines · Maya
One minor comment below:
Review static int mmc_blk_issue_rw_rq(struct
Quoted 1 line
(quoted diff) +0
-0@@ -1278,9 +1609,15 @@ static int mmc_blk_issue_rw_rq(struct
mmc_queueQuoted 6 lines
Quoted 5 lines
*mq, struct request *rqc)
Review static int mmc_blk_issue_rw_rq(struct · line 1609
Quoted 1 line
(quoted diff) +0
-0(card->ext_csd.data_sector_size == 4096)) {You can use
mmc_large_sechere (instead ofcard->ext_csd.data_sector_size
== 4096)Yes, but this line is kept due to another issue related with 4KB
sector.
Quoted 3 lines
Thanks,
Seungwon JeonHi,
Quoted 7 lines
I'm not sure I understand your reply.
mmc_large_secdoes exactly what the
if here does.
My suggestion is to replace the code with the new function you added. I agree it's an old code but this way the code will be consistent andmmc_large_secwill be used in every place we would like to check if the sector size is 4K.
Quoted 5 lines
I just remained. The code you pointed can be replaced. Regardless this review, I'll rework.
eMMC 4.51 spec was updated in June and there is some changes. Spec mentions packed header is 8 blocks in 4KB native device. I'll apply this change.
No need to apply the change.
You are probably right and since it is not related to your change it can be done later on.
Quoted 18 lines
Thanks,
Seungwon JeonQuoted 12 lines
Thanks,
Maya--
Sent by consultant of 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
Signature · 2 lines
Sent by consultant of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Hi Chris,
Can we push this change to mmc-next?
Thanks,
Maya
Quoted 61 lines · On Mon, July 9, 2012 10:40 pm, [email protected] wrote:
Quoted 26 lines · Seungwon Jeon
Quoted 18 lines · Maya
Quoted 4 lines · Seungwon Jeon
Quoted 3 lines · Maya
One minor comment below:
Review static int mmc_blk_issue_rw_rq(struct
Quoted 1 line
(quoted diff) +0
-0@@ -1278,9 +1609,15 @@ static int mmc_blk_issue_rw_rq(struct
mmc_queueQuoted 6 lines
Quoted 5 lines
*mq, struct request *rqc)
Review static int mmc_blk_issue_rw_rq(struct · line 1609
Quoted 1 line
(quoted diff) +0
-0(card->ext_csd.data_sector_size == 4096)) {You can use
mmc_large_sechere (instead ofcard->ext_csd.data_sector_size
== 4096)Yes, but this line is kept due to another issue related with 4KB
sector.
Quoted 3 lines
Thanks,
Seungwon JeonHi,
Quoted 7 lines
I'm not sure I understand your reply.
mmc_large_secdoes exactly what the
if here does.
My suggestion is to replace the code with the new function you added. I agree it's an old code but this way the code will be consistent andmmc_large_secwill be used in every place we would like to check if the sector size is 4K.Quoted 5 lines
I just remained. The code you pointed can be replaced. Regardless this review, I'll rework.
eMMC 4.51 spec was updated in June and there is some changes. Spec mentions packed header is 8 blocks in 4KB native device. I'll apply this change.No need to apply the change.
You are probably right and since it is not related to your change it can be done later on.Quoted 18 lines
Thanks,
Seungwon JeonQuoted 12 lines
Thanks,
Maya--
Sent by consultant of 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--
Sent by consultant of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Signature · 2 lines
Sent by consultant of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
Hi Chris,
Packed commands is a mandatory eMMC4.5 feature and is supported by all the card vendors.
It wa proven to be beneficial for eMMC4.5 cards and harmless for non eMMC4.5 cards.
I don't see a point to hold it back while it can be enabled or disabled by a flag and most of the code it adds is guarded in specific functions and is not active when packed commands is disabled.
Thanks,
Maya
Quoted 53 lines · Seungwon Jeon
Quoted 18 lines · Maya
Quoted 4 lines · Seungwon Jeon
Quoted 3 lines · Maya
One minor comment below:
Review static int mmc_blk_issue_rw_rq(struct
Quoted 1 line
(quoted diff) +0
-0@@ -1278,9 +1609,15 @@ static int mmc_blk_issue_rw_rq(struct
mmc_queueQuoted 6 lines
Quoted 5 lines
*mq, struct request *rqc)
Review static int mmc_blk_issue_rw_rq(struct · line 1609
Quoted 1 line
(quoted diff) +0
-0(card->ext_csd.data_sector_size == 4096)) {You can use
mmc_large_sechere (instead ofcard->ext_csd.data_sector_size
== 4096)Yes, but this line is kept due to another issue related with 4KB
sector.
Quoted 3 lines
Thanks,
Seungwon JeonHi,
Quoted 7 lines
I'm not sure I understand your reply.
mmc_large_secdoes exactly what the
if here does.
My suggestion is to replace the code with the new function you added. I agree it's an old code but this way the code will be consistent andmmc_large_secwill be used in every place we would like to check if the sector size is 4K.I just remained. The code you pointed can be replaced. Regardless this review, I'll rework.
eMMC 4.51 spec was updated in June and there is some changes. Spec mentions packed header is 8 blocks in 4KB native device. I'll apply this change.Thanks,
Seungwon JeonQuoted 4 lines
Thanks,
MayaQuoted 8 lines
--
Sent by consultant of 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
Signature · 2 lines
QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Hi Maya,
Quoted 2 lines · On Sun, Nov 04 2012, [email protected] wrote:
Packed commands is a mandatory eMMC4.5 feature and is supported by all the card vendors.
We're still only talking about using packed writes, though, right?
Quoted 2 lines
It wa proven to be beneficial for eMMC4.5 cards and harmless for non eMMC4.5 cards.
My understanding is that write packing causes a regression in read performance that can be tuned/fixed by your num_wr_reqs_to_start_packing tunable (and read packing causes a read regression with current eMMC 4.5 cards). Is that wrong?
Quoted 3 lines
I don't see a point to hold it back while it can be enabled or disabled by a flag and most of the code it adds is guarded in specific functions and is not active when packed commands is disabled.
Quoted 7 lines · Earlier in the thread I
Quoted 7 lines
* I still don't have a good set of representative benchmarks showing what kind of performance changes come with this patchset. It seems like we've had a small amount of testing on one controller/eMMC part combo from Seungwon, and an entirely different test from Maya, and the results aren't documented fully anywhere to the level of describing what the hardware was, what the test was, and what the results were before and after the patchset.
I still feel this way. I'm worried that we might be merging code that works well on your controller/card but causes large regressions for everyone else. I don't want to handle this by making a tunable that everyone has to tune for their system, because I don't think anyone will tune it. I don't think that shipping a capability that will probably lead to performance regressions if you turn it on is a good idea.
I'm in a better position to help now, though -- I have some motherboards with Marvell SoCs and a socketed eMMC slot, and I have eMMC 4.5 parts from Sandisk and Toshiba. So I can try to help work out how generalizable your results are across other controllers and cards.
So far I've only tried the Sandisk part, but it didn't show any write improvement with write packing. I've verified that the switch command to turn on packed_event_en happens and succeeds, and that the caps are set correctly, so I'm not sure what's wrong yet. With iozone I get:
KB reclen write rewrite Unpacked writes: 10240 8192 17250 16794 Packed writes: 10240 8192 16930 17353
I'll try the Toshiba part next, and I'll start using lmdd as well as iozone. Any ideas on why I might not be seeing improvements with Sandisk?
I'm not opposed to merging packed write support in principle, I just want to be convinced that we're not causing regressions for most users who turn it on. (And more than that, I want to see that it leads to improvements that make it worth adding the code complexity for.)
Thanks,
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child