[PATCH v4] mmc: card: Adding support for sanitize in eMMC 4.5

2013-04-30 Thread Maya Erez
is the memory region that was previously deleted (by erase, trim or discard operation). In order to avoid timeout when sanitizing large-scale cards, the timeout for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi Signed-off-by: Maya Erez --- drivers/mmc/card/block.c | 67

[PATCH v4] mmc: card: Adding support for sanitize in eMMC 4.5

2013-04-30 Thread Maya Erez
is the memory region that was previously deleted (by erase, trim or discard operation). In order to avoid timeout when sanitizing large-scale cards, the timeout for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi yga...@codeaurora.org Signed-off-by: Maya Erez me...@codeaurora.org

[PATCH v6] mmc: block: Add write packing control

2013-04-29 Thread Maya Erez
the write packing is fetching a read request. Signed-off-by: Maya Erez Signed-off-by: Lee Susman --- Our experiments showed that the write packing can increase the worst case read latency. Since the read latency is critical for user experience we added a write packing control mechanism

[PATCH v6] mmc: block: Add write packing control

2013-04-29 Thread Maya Erez
the write packing is fetching a read request. Signed-off-by: Maya Erez me...@codeaurora.org Signed-off-by: Lee Susman lsus...@codeaurora.org --- Our experiments showed that the write packing can increase the worst case read latency. Since the read latency is critical for user experience we added

[PATCH] mmc: block: Add MMC write packing statistics

2013-04-22 Thread Maya Erez
The write packing statistics are used for debug purposes, in order to get the amount of packing in different scenarios. The statistics also include the reason for stopping the creation of the packed request. Signed-off-by: Maya Erez diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card

[PATCH] mmc: block: Add MMC write packing statistics

2013-04-22 Thread Maya Erez
The write packing statistics are used for debug purposes, in order to get the amount of packing in different scenarios. The statistics also include the reason for stopping the creation of the packed request. Signed-off-by: Maya Erez me...@codeaurora.org diff --git a/drivers/mmc/card/block.c b

[PATCH v3] mmc: card: Adding support for sanitize in eMMC 4.5

2013-04-18 Thread Maya Erez
is the memory region that was previously deleted (by erase, trim or discard operation). In order to avoid timeout when sanitizing large-scale cards, the timeout for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi Signed-off-by: Maya Erez --- drivers/mmc/card/block.c | 68

[PATCH v3] mmc: card: Adding support for sanitize in eMMC 4.5

2013-04-18 Thread Maya Erez
is the memory region that was previously deleted (by erase, trim or discard operation). In order to avoid timeout when sanitizing large-scale cards, the timeout for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi yga...@codeaurora.org Signed-off-by: Maya Erez me...@codeaurora.org

[PATCH v2] mmc: card: Adding support for sanitize in eMMC 4.5

2013-04-17 Thread Maya Erez
is the memory region that was previously deleted (by erase, trim or discard operation). In order to avoid timeout when sanitizing large-scale cards, the timeout for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi Signed-off-by: Maya Erez --- drivers/mmc/card/block.c | 68

[PATCH v2] mmc: card: Adding support for sanitize in eMMC 4.5

2013-04-17 Thread Maya Erez
is the memory region that was previously deleted (by erase, trim or discard operation). In order to avoid timeout when sanitizing large-scale cards, the timeout for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi yga...@codeaurora.org Signed-off-by: Maya Erez me...@codeaurora.org

[PATCH v6] mmc: core: Add support for idle time BKOPS

2013-04-14 Thread Maya Erez
. In order to estimate when is the best time to check for BKOPS need the host will take into account the card capacity and percentages of changed sectors in the card. A future enhancement can be to check the card need for BKOPS only in case of random activity. Signed-off-by: Maya Erez --- This patch

[PATCH v6] mmc: core: Add support for idle time BKOPS

2013-04-14 Thread Maya Erez
. In order to estimate when is the best time to check for BKOPS need the host will take into account the card capacity and percentages of changed sectors in the card. A future enhancement can be to check the card need for BKOPS only in case of random activity. Signed-off-by: Maya Erez me

[PATCH v1] mmc: core: move the cache disabling operation to mmc_suspend

2013-01-20 Thread Maya Erez
Cache control is an eMMC feature and in therefore should be part of MMC's bus resume operations, performed in mmc_suspend, rather than in the generic mmc_suspend_host(). Signed-off-by: Maya Erez diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768..b438bb2 100644

[PATCH v1] mmc: core: move the cache disabling operation to mmc_suspend

2013-01-20 Thread Maya Erez
Cache control is an eMMC feature and in therefore should be part of MMC's bus resume operations, performed in mmc_suspend, rather than in the generic mmc_suspend_host(). Signed-off-by: Maya Erez me...@codeaurora.org diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768

RE: [PATCH] mmc: core: disable the cache before suspend only after stopping BKOPS

2013-01-13 Thread Maya Erez
-Original Message- From: Subhash Jadavani [mailto:subha...@codeaurora.org] Sent: Saturday, January 12, 2013 9:07 AM To: Maya Erez Cc: linux-...@vger.kernel.org; linux-arm-...@vger.kernel.org; open list Subject: Re: [PATCH] mmc: core: disable the cache before suspend only after stopping

RE: [PATCH] mmc: core: disable the cache before suspend only after stopping BKOPS

2013-01-13 Thread Maya Erez
-Original Message- From: Subhash Jadavani [mailto:subha...@codeaurora.org] Sent: Saturday, January 12, 2013 9:07 AM To: Maya Erez Cc: linux-...@vger.kernel.org; linux-arm-...@vger.kernel.org; open list Subject: Re: [PATCH] mmc: core: disable the cache before suspend only after stopping

[PATCH] mmc: core: disable the cache before suspend only after stopping BKOPS

2013-01-11 Thread Maya Erez
. Signed-off-by: Maya Erez --- drivers/mmc/core/core.c |7 +-- drivers/mmc/core/mmc.c |8 +++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768..b438bb2 100644 --- a/drivers/mmc/core/core.c +++ b/drivers

[PATCH] mmc: core: disable the cache before suspend only after stopping BKOPS

2013-01-11 Thread Maya Erez
. Signed-off-by: Maya Erez me...@codeaurora.org --- drivers/mmc/core/core.c |7 +-- drivers/mmc/core/mmc.c |8 +++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768..b438bb2 100644 --- a/drivers/mmc/core

[PATCH v5 3/3] mmc: core: Add MMC BKOPS statistics and debugfs ability to print them

2013-01-10 Thread Maya Erez
The BKOPS statistics are used for BKOPS unit tests and APT tests to determine test success or failure. the BKOPS statistics provide the following information: The number of times BKOPS were issued according to it's severity level The number of times BKOPS were interrupted by HPI. The number of

[PATCH v5 2/3] mmc: allow the host controller to poll for BKOPS completion

2013-01-10 Thread Maya Erez
like to prevent the runtime suspend idle until BKOPS is completed. This patch adds a flag to allow the controller to mark if the polling is required or not. Signed-off-by: Maya Erez --- drivers/mmc/core/core.c | 82 +- drivers/mmc/core/mmc.c

[PATCH v5 1/3] mmc: core: Add support for idle time BKOPS

2013-01-10 Thread Maya Erez
will take into account the card capacity and percentages of changed sectors in the card. A future enhancement can be to check the card need for BKOPS only in case of random activity. Signed-off-by: Maya Erez --- Documentation/mmc/mmc-dev-attrs.txt |9 ++ drivers/mmc/card/block.c

[PATCH v5 1/3] mmc: core: Add support for idle time BKOPS

2013-01-10 Thread Maya Erez
will take into account the card capacity and percentages of changed sectors in the card. A future enhancement can be to check the card need for BKOPS only in case of random activity. Signed-off-by: Maya Erez me...@codeaurora.org --- Documentation/mmc/mmc-dev-attrs.txt |9 ++ drivers/mmc/card

[PATCH v5 2/3] mmc: allow the host controller to poll for BKOPS completion

2013-01-10 Thread Maya Erez
like to prevent the runtime suspend idle until BKOPS is completed. This patch adds a flag to allow the controller to mark if the polling is required or not. Signed-off-by: Maya Erez me...@codeaurora.org --- drivers/mmc/core/core.c | 82 +- drivers

[PATCH v5 3/3] mmc: core: Add MMC BKOPS statistics and debugfs ability to print them

2013-01-10 Thread Maya Erez
The BKOPS statistics are used for BKOPS unit tests and APT tests to determine test success or failure. the BKOPS statistics provide the following information: The number of times BKOPS were issued according to it's severity level The number of times BKOPS were interrupted by HPI. The number of

[PATCH v4 2/2] mmc: allow the host controller to poll for BKOPS completion

2012-12-24 Thread Maya Erez
like to prevent the runtime suspend idle until BKOPS is completed. This patch adds a flag to allow the controller to mark if the polling is required or not. Signed-off-by: Maya Erez diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 36cef94..cb20bac 100644 --- a/drivers/mmc

[PATCH v4 1/2] mmc: core: Add support for idle time BKOPS

2012-12-24 Thread Maya Erez
and if needed, the BKOPS will be performed without waiting for the next idle time. Signed-off-by: Maya Erez diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 21056b9..64bbf75 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1473,9 +1473,15 @@ static int

[PATCH v4 1/2] mmc: core: Add support for idle time BKOPS

2012-12-24 Thread Maya Erez
and if needed, the BKOPS will be performed without waiting for the next idle time. Signed-off-by: Maya Erez me...@codeaurora.org diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 21056b9..64bbf75 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1473,9

[PATCH v4 2/2] mmc: allow the host controller to poll for BKOPS completion

2012-12-24 Thread Maya Erez
like to prevent the runtime suspend idle until BKOPS is completed. This patch adds a flag to allow the controller to mark if the polling is required or not. Signed-off-by: Maya Erez me...@codeaurora.org diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 36cef94..cb20bac 100644

RE: [PATCH v3] mmc: core: Add support for idle time BKOPS

2012-12-21 Thread Maya Erez
to influence the battery consumption, >>>>> since we now delay getting into suspend (since mmc_start_bkops >>>>> which is called after the delayed work is executed claims the >>>>> host). >>>>> The solution for that should be done by th

RE: [PATCH v3] mmc: core: Add support for idle time BKOPS

2012-12-21 Thread Maya Erez
? So I will test more with this patch, because i want to test with dw-mmc controller, too. On 11/25/2012 08:56 PM, Maya Erez wrote: Devices have various maintenance operations need to perform internally. In order to reduce latencies during time critical operations like read and write

[PATCH v3] mmc: core: Add support for idle time BKOPS

2012-11-25 Thread Maya Erez
-by: Maya Erez --- This patch is based on the periodic BKOPS implementation in version 8 of "support BKOPS feature for eMMC" patch. The patch was modified to answer the following issues: - In order to prevent a race condition between going into suspend and starting BKOPS, the suspe

[PATCH v3] mmc: core: Add support for idle time BKOPS

2012-11-25 Thread Maya Erez
-by: Maya Erez me...@codeaurora.org --- This patch is based on the periodic BKOPS implementation in version 8 of support BKOPS feature for eMMC patch. The patch was modified to answer the following issues: - In order to prevent a race condition between going into suspend and starting BKOPS

[PATCH v2] mmc: core: Add support for idle time BKOPS

2012-10-04 Thread Maya Erez
-by: Maya Erez Signed-off-by: Jaehoon Chung --- This patch is based on the periodic BKOPS implementation in version 8 of "support BKOPS feature for eMMC" patch. The patch was modified to answer the following issues: - In order to prevent a race condition between going into suspend an

[PATCH v2] mmc: core: Add support for idle time BKOPS

2012-10-04 Thread Maya Erez
-by: Maya Erez me...@codeaurora.org Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- This patch is based on the periodic BKOPS implementation in version 8 of support BKOPS feature for eMMC patch. The patch was modified to answer the following issues: - In order to prevent a race condition

[RFC/PATCH 2/2] mmc: new packet notification

2012-09-20 Thread Maya Erez
From: Konstantin Dorfman Unblock waiting for current request running on the bus, when new packet supplied by block layer. This improves async request mechanism. In most cases new request is inserted after mmc layer fetched NULL and was blocked on waiting for the previous request completion. The

[RFC/PATCH 1/2] mmc: Urgent data request flow

2012-09-20 Thread Maya Erez
From: Konstantin Dorfman Urgent request notification stops currently running packed transaction on bus. Finished part of the request will be acknowledged to the block layer, remainder will be re-inserted back to be fetched later, this will minimize urgent request latency. Signed-off-by:

[RFC/PATCH 1/2] mmc: Urgent data request flow

2012-09-20 Thread Maya Erez
From: Konstantin Dorfman kdorf...@codeaurora.org Urgent request notification stops currently running packed transaction on bus. Finished part of the request will be acknowledged to the block layer, remainder will be re-inserted back to be fetched later, this will minimize urgent request latency.

[RFC/PATCH 2/2] mmc: new packet notification

2012-09-20 Thread Maya Erez
From: Konstantin Dorfman kdorf...@codeaurora.org Unblock waiting for current request running on the bus, when new packet supplied by block layer. This improves async request mechanism. In most cases new request is inserted after mmc layer fetched NULL and was blocked on waiting for the previous

[PATCH v1] mmc: core: Add support for idle time BKOPs

2012-09-19 Thread Maya Erez
. Signed-off-by: Maya Erez Signed-off-by: Jaehoon Chung --- This patch is based on the periodic BKOPs implementation in version 8 of "support BKOPS feature for eMMC" patch. The patch was modified to answer the following issues: - In order to prevent a race condition between going in

[PATCH v1] mmc: core: Add support for idle time BKOPs

2012-09-19 Thread Maya Erez
. Signed-off-by: Maya Erez me...@codeaurora.org Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- This patch is based on the periodic BKOPs implementation in version 8 of support BKOPS feature for eMMC patch. The patch was modified to answer the following issues: - In order to prevent a race

[RFC/PATCH] mmc: core: Add support for idle time BKOPs

2012-08-05 Thread Maya Erez
. Signed-off-by: Maya Erez Signed-off-by: Jaehoon Chung --- This patch depends on the following patch: [PATCH v11] mmc: support BKOPS feature for eMMC This patch is based on the periodic BKOPs implementation in version 8 of "support BKOPS feature for eMMC" patch. The patch was modified

[RFC/PATCH] mmc: core: Add support for idle time BKOPs

2012-08-05 Thread Maya Erez
. Signed-off-by: Maya Erez me...@codeaurora.org Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- This patch depends on the following patch: [PATCH v11] mmc: support BKOPS feature for eMMC This patch is based on the periodic BKOPs implementation in version 8 of support BKOPS feature for eMMC

[PATCH v5 3/3] mmc: card: Add eMMC4.5 write packed commands unit-tests

2012-07-31 Thread Maya Erez
Expose the following packed commands tests: - Test the write packed commands list preparation - Simulate a returned error code - Send an invalid packed command to the card Signed-off-by: Lee Susman Signed-off-by: Maya Erez --- drivers/mmc/card/Kconfig | 11 + drivers/mmc/card

[PATCH v5 2/3] mmc: block: Add MMC write packing statistics

2012-07-31 Thread Maya Erez
The write packing statistics are used for the packed commands unit tests in order to determine test success or failure Signed-off-by: Maya Erez --- drivers/mmc/card/block.c | 57 ++- drivers/mmc/core/bus.c |4 + drivers/mmc/core/debugfs.c | 176

[PATCH v5 1/3] block: Add test-iosched scheduler

2012-07-31 Thread Maya Erez
The test scheduler allows testing a block device by dispatching specific requests according to the test case and declare PASS/FAIL according to the requests completion error code Signed-off-by: Maya Erez --- Documentation/block/test-iosched.txt | 39 ++ block/Kconfig.iosched

[PATCH v5 1/3] block: Add test-iosched scheduler

2012-07-31 Thread Maya Erez
The test scheduler allows testing a block device by dispatching specific requests according to the test case and declare PASS/FAIL according to the requests completion error code Signed-off-by: Maya Erez me...@codeaurora.org --- Documentation/block/test-iosched.txt | 39 ++ block

[PATCH v5 2/3] mmc: block: Add MMC write packing statistics

2012-07-31 Thread Maya Erez
The write packing statistics are used for the packed commands unit tests in order to determine test success or failure Signed-off-by: Maya Erez me...@codeaurora.org --- drivers/mmc/card/block.c | 57 ++- drivers/mmc/core/bus.c |4 + drivers/mmc/core/debugfs.c | 176

[PATCH v5 3/3] mmc: card: Add eMMC4.5 write packed commands unit-tests

2012-07-31 Thread Maya Erez
Expose the following packed commands tests: - Test the write packed commands list preparation - Simulate a returned error code - Send an invalid packed command to the card Signed-off-by: Lee Susman lsus...@codeaurora.org Signed-off-by: Maya Erez me...@codeaurora.org --- drivers/mmc/card/Kconfig

[PATCH] mmc: card: Add Sanitize unit test

2012-07-25 Thread Maya Erez
This test write data to the card, then send DISCARD on random addresses on the card, send SANITIZE to the card to erase all the unmapped areas. Signed-off-by: Maya Erez --- This patch depends of the following patches: [PATCH RESEND v7 1/2] block: ioctl support for sanitize in eMMC 4.5 [PATCH

[PATCH] mmc: card: Add Sanitize unit test

2012-07-25 Thread Maya Erez
This test write data to the card, then send DISCARD on random addresses on the card, send SANITIZE to the card to erase all the unmapped areas. Signed-off-by: Maya Erez me...@codeaurora.org --- This patch depends of the following patches: [PATCH RESEND v7 1/2] block: ioctl support for sanitize

[PATCH v4 3/3] mmc: card: Add eMMC4.5 write packed commands unit-tests

2012-07-15 Thread Maya Erez
Expose the following packed commands tests: - Test the write packed commands list preparation - Simulate a returned error code - Send an invalid packed command to the card Signed-off-by: Lee Susman Signed-off-by: Maya Erez --- drivers/mmc/card/Kconfig | 11 + drivers/mmc/card

[PATCH v4 2/3] block: Add test-iosched scheduler

2012-07-15 Thread Maya Erez
The test scheduler allows testing a block device by dispatching specific requests according to the test case and declare PASS/FAIL according to the requests completion error code Signed-off-by: Maya Erez --- Documentation/block/test-iosched.txt | 39 ++ block/Kconfig.iosched

[PATCH v5] mmc: block: Add write packing control

2012-07-15 Thread Maya Erez
sysfs by writing the required value to: /sys/block//num_wr_reqs_to_start_packing. The trigger for disabling the write packing is fetching a read request. Signed-off-by: Maya Erez --- Our experiments showed that the write packing causes degradation of the read throughput, in parallel read and write

[PATCH v5] mmc: block: Add write packing control

2012-07-15 Thread Maya Erez
sysfs by writing the required value to: /sys/block/block_dev_name/num_wr_reqs_to_start_packing. The trigger for disabling the write packing is fetching a read request. Signed-off-by: Maya Erez me...@codeaurora.org --- Our experiments showed that the write packing causes degradation of the read

[PATCH v4 2/3] block: Add test-iosched scheduler

2012-07-15 Thread Maya Erez
The test scheduler allows testing a block device by dispatching specific requests according to the test case and declare PASS/FAIL according to the requests completion error code Signed-off-by: Maya Erez me...@codeaurora.org --- Documentation/block/test-iosched.txt | 39 ++ block

[PATCH v4 3/3] mmc: card: Add eMMC4.5 write packed commands unit-tests

2012-07-15 Thread Maya Erez
Expose the following packed commands tests: - Test the write packed commands list preparation - Simulate a returned error code - Send an invalid packed command to the card Signed-off-by: Lee Susman lsus...@codeaurora.org Signed-off-by: Maya Erez me...@codeaurora.org --- drivers/mmc/card/Kconfig

[PATCH RESEND v4 2/2] mmc: block: Add write packing control

2012-07-14 Thread Maya Erez
sysfs by writing the required value to: /sys/block//num_wr_reqs_to_start_packing. The trigger for disabling the write packing is fetching a read request. Signed-off-by: Maya Erez --- Documentation/mmc/mmc-dev-attrs.txt | 17 ++ drivers/mmc/card/block.c| 105

[PATCH RESEND v4 1/2] mmc: card: Move MMC specific attributes to mmc sub-directory

2012-07-14 Thread Maya Erez
Separate MMC specific attributes from general block device attributes and move them from the /sys/block/ directory to /sys/block//mmc directory Signed-off-by: Maya Erez --- drivers/mmc/card/block.c | 71 + 1 files changed, 64 insertions(+), 7

[PATCH RESEND v4 1/2] mmc: card: Move MMC specific attributes to mmc sub-directory

2012-07-14 Thread Maya Erez
Separate MMC specific attributes from general block device attributes and move them from the /sys/block/BLOCK_DEV directory to /sys/block/BLOCK_DEV/mmc directory Signed-off-by: Maya Erez me...@codeaurora.org --- drivers/mmc/card/block.c | 71 + 1

[PATCH RESEND v4 2/2] mmc: block: Add write packing control

2012-07-14 Thread Maya Erez
sysfs by writing the required value to: /sys/block/block_dev_name/num_wr_reqs_to_start_packing. The trigger for disabling the write packing is fetching a read request. Signed-off-by: Maya Erez me...@codeaurora.org --- Documentation/mmc/mmc-dev-attrs.txt | 17 ++ drivers/mmc/card/block.c