Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-23 Thread Diego Santa Cruz
-Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Thursday, January 22, 2015 8:59 PM To: Pantelis Antoniou Cc: Diego Santa Cruz; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output On 01/22

Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-23 Thread Diego Santa Cruz
-Original Message- From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] Sent: Friday, January 23, 2015 9:35 AM To: Diego Santa Cruz Cc: Stephen Warren; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output Hi

[U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2014-12-23 Thread Diego Santa Cruz
Capacity: 64 MiB Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 17 + 1 file changed, 17 insertions(+) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 96478e4..fa765d7 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -73,6 +73,8

[U-Boot] [PATCH v4 05/18] mmc: incomplete test to switch to high-capacity group size definitions

2014-12-23 Thread Diego Santa Cruz
ERASE_GROUP_DEF before setting that bit, so it means that the user previously switched to the high capacity definitions. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 52 ++-- 1 file changed, 30 insertions(+), 22

[U-Boot] [PATCH v4 00/18] Support for eMMC partitioning and related fixes

2014-12-23 Thread Diego Santa Cruz
hardware partition support. I have tested this with Micron eMMC 4.41 parts and it is working as expected. This version resyncs to u-boot.git master d8bec60c1b0de7770f9b56ad092ab9be801d99af as some recent mmc changes conflicted with these patches, in particular the DDR mode support. Diego Santa Cruz

[U-Boot] [PATCH v4 11/18] mmc: show the erase group size and HC WP group size in mmcinfo output

2014-12-23 Thread Diego Santa Cruz
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v4 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor

2014-12-23 Thread Diego Santa Cruz
Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 5e9926c..86c4db9 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1026,6 +1026,7 @@ static int mmc_startup

[U-Boot] [PATCH v4 02/18] mmc: extend mmcinfo to show enhanced partition attribute

2014-12-23 Thread Diego Santa Cruz
Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 14 ++ drivers/mmc/mmc.c | 3 +++ include/mmc.h | 6 ++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index fa765d7..18cfe09 100644 --- a/common/cmd_mmc.c +++ b

[U-Boot] [PATCH v4 12/18] mmc: eMMC partitioning data is not effective till partitioning completed

2014-12-23 Thread Diego Santa Cruz
of the partitioning fields in EXT_CSD, so having partitioning data means someone previously activated that and we should keep it activated. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 58 +-- 1 file

[U-Boot] [PATCH v4 10/18] mmc: read the high capacity WP group size for eMMC

2014-12-23 Thread Diego Santa Cruz
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 6 ++ include/mmc.h

[U-Boot] [PATCH v4 07/18] mmc: read the size of eMMC enhanced user data area

2014-12-23 Thread Diego Santa Cruz
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 15 +++ include/mmc.h | 4 2 files changed, 19

[U-Boot] [PATCH v4 08/18] mmc: display size and start of eMMC enhanced user data area in mmcinfo

2014-12-23 Thread Diego Santa Cruz
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/common

[U-Boot] [PATCH v4 18/18] mmc: extend mmcinfo output to show partition write reliability settings

2014-12-23 Thread Diego Santa Cruz
Capacity: 16 MiB ENH RPMB Capacity: 128 KiB ENH GP1 Capacity: 64 MiB ENH WRREL GP2 Capacity: 64 MiB ENH WRREL Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 12 ++-- drivers/mmc/mmc.c | 2 ++ include/mmc.h | 1 + 3 files changed, 13 insertions(+), 2

[U-Boot] [PATCH v4 14/18] mmc: add API to do eMMC hardware partitioning

2014-12-23 Thread Diego Santa Cruz
and is thus not reversible. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 155 ++ include/mmc.h | 20 +++ 2 files changed, 175 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

[U-Boot] [PATCH v4 04/18] mmc: skip mmcinfo partition info processing for eMMC 4.41

2014-12-23 Thread Diego Santa Cruz
eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC = 4.0, change it to do it for = 4.41 Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_mmc.c b

[U-Boot] [PATCH v4 09/18] mmc: fix erase_grp_size computation with high-capacity size definition

2014-12-23 Thread Diego Santa Cruz
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. Signed-off-by: Diego Santa

[U-Boot] [PATCH v4 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-12-23 Thread Diego Santa Cruz
is conditional on MMC = 4.0. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 403843b..63a1e0c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c

[U-Boot] [PATCH v4 03/18] mmc: make eMMC general purpose partition numbering match spec

2014-12-23 Thread Diego Santa Cruz
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v4 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-12-23 Thread Diego Santa Cruz
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers

[U-Boot] [PATCH v4 17/18] mmc: extend the mmc hwpartition sub-command to change write reliability

2014-12-23 Thread Diego Santa Cruz
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v4 15/18] mmc: add mmc hwpartition sub-command to do eMMC hardware partitioning

2014-12-23 Thread Diego Santa Cruz
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v3 00/18] Support for eMMC partitioning and related fixes

2014-12-15 Thread Diego Santa Cruz
hardware partition support. I have tested this with Micron eMMC 4.41 parts and it is working as expected. This version of the patches just adds the missing signed-off-by tags. The patch series is against u-boot.git master of a few minutes ago. Diego Santa Cruz (18): mmc: show hardware partition

[U-Boot] [PATCH v3 02/18] mmc: extend mmcinfo to show enhanced partition attribute

2014-12-15 Thread Diego Santa Cruz
Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 14 ++ drivers/mmc/mmc.c |3 +++ include/mmc.h |6 ++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 1a23b28..56c8680 100644 --- a/common/cmd_mmc.c

[U-Boot] [PATCH v3 03/18] mmc: make eMMC general purpose partition numbering match spec

2014-12-15 Thread Diego Santa Cruz
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v3 05/18] mmc: incomplete test to switch to high-capacity group size definitions

2014-12-15 Thread Diego Santa Cruz
ERASE_GROUP_DEF before setting that bit, so it means that the user previously switched to the high capacity definitions. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 51 +-- include/mmc.h |2 ++ 2 files

[U-Boot] [PATCH v3 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor

2014-12-15 Thread Diego Santa Cruz
Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7f5614e..62b945c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7

[U-Boot] [PATCH v3 07/18] mmc: read the size of eMMC enhanced user data area

2014-12-15 Thread Diego Santa Cruz
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 15 +++ include/mmc.h |4 2 files changed

[U-Boot] [PATCH v3 09/18] mmc: fix erase_grp_size computation with high-capacity size definition

2014-12-15 Thread Diego Santa Cruz
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. Signed-off-by: Diego Santa

[U-Boot] [PATCH v3 08/18] mmc: display size and start of eMMC enhanced user data area in mmcinfo

2014-12-15 Thread Diego Santa Cruz
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v3 10/18] mmc: read the high capacity WP group size for eMMC

2014-12-15 Thread Diego Santa Cruz
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |6 ++ include/mmc.h

[U-Boot] [PATCH v3 11/18] mmc: show the erase group size and HC WP group size in mmcinfo output

2014-12-15 Thread Diego Santa Cruz
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v3 14/18] mmc: add API to do eMMC hardware partitioning

2014-12-15 Thread Diego Santa Cruz
and is thus not reversible. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 154 + include/mmc.h | 20 +++ 2 files changed, 174 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers

[U-Boot] [PATCH v3 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-12-15 Thread Diego Santa Cruz
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers

[U-Boot] [PATCH v3 17/18] mmc: extend the mmc hwpartition sub-command to change write reliability

2014-12-15 Thread Diego Santa Cruz
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v3 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-12-15 Thread Diego Santa Cruz
is conditional on MMC = 4.0. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index dc8f830..d208118 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c

[U-Boot] [PATCH v3 12/18] mmc: eMMC partitioning data is not effective till partitioning completed

2014-12-15 Thread Diego Santa Cruz
of the partitioning fields in EXT_CSD, so having partitioning data means someone previously activated that and we should keep it activated. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 53 ++--- 1 files

[U-Boot] [PATCH v3 15/18] mmc: add mmc hwpartition sub-command to do eMMC hardware partitioning

2014-12-15 Thread Diego Santa Cruz
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v3 18/18] mmc: extend mmcinfo output to show partition write reliability settings

2014-12-15 Thread Diego Santa Cruz
Capacity: 16 MiB ENH RPMB Capacity: 128 KiB ENH GP1 Capacity: 64 MiB ENH WRREL GP2 Capacity: 64 MiB ENH WRREL Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 12 ++-- drivers/mmc/mmc.c |2 ++ include/mmc.h |1 + 3 files changed, 13 insertions

[U-Boot] [PATCH v3 04/18] mmc: skip mmcinfo partition info processing for eMMC 4.41

2014-12-15 Thread Diego Santa Cruz
eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC = 4.0, change it to do it for = 4.41 Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common

[U-Boot] [PATCH v3 01/18] mmc: show hardware partition sizes in mmcinfo output

2014-12-15 Thread Diego Santa Cruz
Capacity: 64 MiB Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 4286e26..1a23b28 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c

Re: [U-Boot] [PATCH v2 00/18] Support for eMMC partitioning and related fixes

2014-12-15 Thread Diego Santa Cruz
Hi Pantelis, -Original Message- From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] Sent: Friday, December 12, 2014 8:21 PM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: Re: [PATCH v2 00/18] Support for eMMC partitioning and related fixes Hi Diego, [snip] I

Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-12-05 Thread Diego Santa Cruz
-Original Message- From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se] Sent: Thursday, December 04, 2014 7:29 PM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: RE: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes Diego Santa Cruz

Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-12-05 Thread Diego Santa Cruz
-Original Message- From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se] Sent: Friday, December 05, 2014 10:46 AM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: RE: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes [snip] Write size should

[U-Boot] [PATCH v2 00/18] Support for eMMC partitioning and related fixes

2014-12-04 Thread Diego Santa Cruz
-boot.git master of a few minutes ago. Diego Santa Cruz (18): mmc: show hardware partition sizes in mmcinfo output mmc: extend mmcinfo to show enhanced partition attribute mmc: make eMMC general purpose partition numbering match spec mmc: skip mmcinfo partition info processing for eMMC

[U-Boot] [PATCH v2 01/18] mmc: show hardware partition sizes in mmcinfo output

2014-12-04 Thread Diego Santa Cruz
There is currently no command that will provide an overview of the hardware partitions present on an eMMC device, one has to switch to every partition via mmc dev and run mmcinfo for each to get the partition's capacity. This commit adds a few lines of output to mmcinfo with the sizes of the

[U-Boot] [PATCH v2 02/18] mmc: extend mmcinfo to show enhanced partition attribute

2014-12-04 Thread Diego Santa Cruz
This extends the mmcinfo command's output to show which eMMC partitions have the enhanced attribute set. Note that the eMMC spec says that if the enhanced attribute is supported then the boot and RPMB partitions are of the enhanced type. The output of mmcinfo becomes: Device: OMAP SD/MMC

[U-Boot] [PATCH v2 03/18] mmc: make eMMC general purpose partition numbering match spec

2014-12-04 Thread Diego Santa Cruz
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1

[U-Boot] [PATCH v2 04/18] mmc: skip mmcinfo partition info processing for eMMC 4.41

2014-12-04 Thread Diego Santa Cruz
eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC = 4.0, change it to do it for = 4.41 --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 414fac6..bc02273 100644 ---

[U-Boot] [PATCH v2 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor

2014-12-04 Thread Diego Santa Cruz
--- drivers/mmc/mmc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index c045f9e..b088fd7 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7 @@ static int mmc_startup(struct mmc *mmc)

[U-Boot] [PATCH v2 05/18] mmc: incomplete test to switch to high-capacity group size definitions

2014-12-04 Thread Diego Santa Cruz
The eMMC spec mandates that the high-capacity group size definitions should be enabled when the device is partitioned (by setting ERASE_GROUP_DEF in EXT_CSD). The current test to determine when this is required misses a few cases. In particular a device may have been partitioned without setting

[U-Boot] [PATCH v2 07/18] mmc: read the size of eMMC enhanced user data area

2014-12-04 Thread Diego Santa Cruz
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. --- drivers/mmc/mmc.c | 15 +++ include/mmc.h |4 2 files changed, 19 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH v2 08/18] mmc: display size and start of eMMC enhanced user data area in mmcinfo

2014-12-04 Thread Diego Santa Cruz
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. --- common/cmd_mmc.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index bc02273..aa5ba0e 100644

[U-Boot] [PATCH v2 09/18] mmc: fix erase_grp_size computation with high-capacity size definition

2014-12-04 Thread Diego Santa Cruz
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. --- drivers/mmc/mmc.c |

[U-Boot] [PATCH v2 12/18] mmc: eMMC partitioning data is not effective till partitioning completed

2014-12-04 Thread Diego Santa Cruz
The eMMC spec says that partitioning is only effective after the PARTITION_SETTING_COMPLETED is set in EXT_CSD (and a power cycle was done, but that we cannot know). Thus the partition sizes and attributes should be ignored when that bit is not set, otherwise the various capacities are not

[U-Boot] [PATCH v2 11/18] mmc: show the erase group size and HC WP group size in mmcinfo output

2014-12-04 Thread Diego Santa Cruz
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. --- common/cmd_mmc.c | 10 ++ 1 files

[U-Boot] [PATCH v2 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-12-04 Thread Diego Santa Cruz
The mmc_startup() function uses the ext_csd data even if reading it from the mmc device failed. This bug was introduced in commit bc897b1d4d86597311430dbe7b3e6c807c8c53e5. We now bail out if reading it fails, this should not be a problem as ext_csd was introduced in MMC 4.0 and this code is

[U-Boot] [PATCH v2 10/18] mmc: read the high capacity WP group size for eMMC

2014-12-04 Thread Diego Santa Cruz
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. --- drivers/mmc/mmc.c |6 ++ include/mmc.h |1 + 2 files changed, 7 insertions(+), 0 deletions(-)

[U-Boot] [PATCH v2 15/18] mmc: add mmc hwpartition sub-command to do eMMC hardware partitioning

2014-12-04 Thread Diego Santa Cruz
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. --- common/cmd_mmc.c | 93

[U-Boot] [PATCH v2 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-12-04 Thread Diego Santa Cruz
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. --- drivers/mmc/mmc.c | 39 +++

[U-Boot] [PATCH v2 18/18] mmc: extend mmcinfo output to show partition write reliability settings

2014-12-04 Thread Diego Santa Cruz
This extends the mmcinfo hardware partition info output to show partitions with write reliability enabled with the WRREL string. If the partition does not have write reliability enabled the WRREL string is omitted; this is analogous to the ehhanced attribute. Example output: Device: OMAP SD/MMC

[U-Boot] [PATCH v2 14/18] mmc: add API to do eMMC hardware partitioning

2014-12-04 Thread Diego Santa Cruz
This adds an API to do hardware partitioning on eMMC devices. The new mmc_hwpart_config() function does the partitioning in one go. As the different attributes and partitioning options on eMMC may be interdependent validation has to be done based on the complete partitioning configuration. The

[U-Boot] [PATCH v2 17/18] mmc: extend the mmc hwpartition sub-command to change write reliability

2014-12-04 Thread Diego Santa Cruz
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. --- common/cmd_mmc.c | 116

[U-Boot] [PATCH 05/18] mmc: incomplete test to switch to high-capacity group size definitions

2014-11-28 Thread Diego Santa Cruz
The eMMC spec mandates that the high-capacity group size definitions should be enabled when the device is partitioned (by setting ERASE_GROUP_DEF in EXT_CSD). The current test to determine when this is required misses a few cases. In particular a device may have been partitioned without setting

[U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-11-28 Thread Diego Santa Cruz
hardware partition support. I have tested this with Micron eMMC 4.41 parts and it is working as expected. I am new to sending patches to the U-Boot mailing list, let alone working with git, so please excuse any mishaps. Diego Santa Cruz (18): mmc: show hardware partition sizes in mmcinfo output

[U-Boot] [PATCH 01/18] mmc: show hardware partition sizes in mmcinfo output

2014-11-28 Thread Diego Santa Cruz
There is currently no command that will provide an overview of the hardware partitions present on an eMMC device, one has to switch to every partition via mmc dev and run mmcinfo for each to get the partition's capacity. This commit adds a few lines of output to mmcinfo with the sizes of the

[U-Boot] [PATCH 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-11-28 Thread Diego Santa Cruz
The mmc_startup() function uses the ext_csd data even if reading it from the mmc device failed. This bug was introduced in commit bc897b1d4d86597311430dbe7b3e6c807c8c53e5. We now bail out if reading it fails, this should not be a problem as ext_csd was introduced in MMC 4.0 and this code is

[U-Boot] [PATCH 03/18] mmc: make eMMC general purpose partition numbering match spec

2014-11-28 Thread Diego Santa Cruz
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1

[U-Boot] [PATCH 14/18] mmc: add API to do eMMC hardware partitioning

2014-11-28 Thread Diego Santa Cruz
This adds an API to do hardware partitioning on eMMC devices. The new mmc_hwpart_config() function does the partitioning in one go. As the different attributes and partitioning options on eMMC may be interdependent validation has to be done based on the complete partitioning configuration. The

[U-Boot] [PATCH 09/18] mmc: fix erase_grp_size computation with high-capacity size definition

2014-11-28 Thread Diego Santa Cruz
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. --- drivers/mmc/mmc.c |

[U-Boot] [PATCH 07/18] mmc: read the size of eMMC enhanced user data area

2014-11-28 Thread Diego Santa Cruz
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. --- drivers/mmc/mmc.c | 15 +++ include/mmc.h |4 2 files changed, 19 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH 04/18] mmc: skip mmcinfo partition info processing for eMMC 4.41

2014-11-28 Thread Diego Santa Cruz
eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC = 4.0, change it to do it for = 4.41 --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 414fac6..bc02273 100644 ---

[U-Boot] [PATCH 08/18] mmc: display size and start of eMMC enhanced user data area in mmcinfo

2014-11-28 Thread Diego Santa Cruz
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. --- common/cmd_mmc.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index bc02273..aa5ba0e 100644

[U-Boot] [PATCH 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor

2014-11-28 Thread Diego Santa Cruz
--- drivers/mmc/mmc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index c045f9e..b088fd7 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7 @@ static int mmc_startup(struct mmc *mmc)

[U-Boot] [PATCH 10/18] mmc: read the high capacity WP group size for eMMC

2014-11-28 Thread Diego Santa Cruz
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. --- drivers/mmc/mmc.c |6 ++ include/mmc.h |1 + 2 files changed, 7 insertions(+), 0 deletions(-)

[U-Boot] [PATCH 11/18] mmc: show the erase group size and HC WP group size in mmcinfo output

2014-11-28 Thread Diego Santa Cruz
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. --- common/cmd_mmc.c | 10 ++ 1 files

[U-Boot] [PATCH 15/18] mmc: add mmc hwpartition sub-command to do eMMC hardware partitioning

2014-11-28 Thread Diego Santa Cruz
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. --- common/cmd_mmc.c | 92

[U-Boot] [PATCH 18/18] mmc: extend mmcinfo output to show partition write reliability settings

2014-11-28 Thread Diego Santa Cruz
This extends the mmcinfo hardware partition info output to show partitions with write reliability enabled with the WRREL string. If the partition does not have write reliability enabled the WRREL string is omitted; this is analogous to the ehhanced attribute. Example output: Device: OMAP SD/MMC

[U-Boot] [PATCH 12/18] mmc: eMMC partitioning data is not effective till partitioning completed

2014-11-28 Thread Diego Santa Cruz
The eMMC spec says that partitioning is only effective after the PARTITION_SETTING_COMPLETED is set in EXT_CSD (and a power cycle was done, but that we cannot know). Thus the partition sizes and attributes should be ignored when that bit is not set, otherwise the various capacities are not

[U-Boot] [PATCH 02/18] mmc: extend mmcinfo to show enhanced partition attribute

2014-11-28 Thread Diego Santa Cruz
This extends the mmcinfo command's output to show which eMMC partitions have the enhanced attribute set. Note that the eMMC spec says that if the enhanced attribute is supported then the boot and RPMB partitions are of the enhanced type. The output of mmcinfo becomes: Device: OMAP SD/MMC

[U-Boot] [PATCH 17/18] mmc: extend the mmc hwpartition sub-command to change write reliability

2014-11-28 Thread Diego Santa Cruz
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. --- common/cmd_mmc.c | 116

[U-Boot] [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-11-28 Thread Diego Santa Cruz
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. --- common/cmd_mmc.c | 21 +++-- drivers/mmc/mmc.c |

Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-11-28 Thread Diego Santa Cruz
to review, most of them are pretty simple. I forgot to mention, but the patches are against yesterday's u-boot.git master. Let me know if they need some rework. Best, Diego -- Diego Santa Cruz, PhD Technology Architect spinetix.com ___ U-Boot

Re: [U-Boot] [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-11-28 Thread Diego Santa Cruz
put them in the main struct with the user_ prefix? Best, Diego -- Diego Santa Cruz, PhD Technology Architect spinetix.com -Original Message- From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] Sent: Friday, November 28, 2014 11:09 AM To: Diego Santa Cruz Cc: u-boot

Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-11-28 Thread Diego Santa Cruz
Hi, -Original Message- From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se] Sent: Friday, November 28, 2014 11:05 AM To: Diego Santa Cruz Cc: pa...@antoniou-consulting.com; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related

Re: [U-Boot] [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-11-28 Thread Diego Santa Cruz
generate a new patch series. Thanks, Diego -- Diego Santa Cruz, PhD Technology Architect spinetix.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-11-28 Thread Diego Santa Cruz
you think I should make before I resend the patch series? I guess I should resend the whole series to the mailing list for consistency. Best, Diego -- Diego Santa Cruz, PhD Technology Architect spinetix.com ___ U-Boot mailing list U-Boot@lists.denx.de