[PATCH 2/6] mmc: bcm2835: Increase max_blk_size to 1024

Eric Anholt eric at anholt.net
Mon Feb 13 12:45:54 PST 2017


Stefan Wahren <stefan.wahren at i2se.com> writes:

> In order to use the same max_blk_size like the sdhci-iproc does
> we need to increase it to 1024 bytes. This results in a
> little write performance gain for MMC:

I'm confused -- this series is for SDHOST, right?  Why are you comparing
to sdhci-iproc (the EMMC controller), then?

> Before: 13,8 MB/s
> After: 14,0 MB/s
>
> Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
> ---
>  drivers/mmc/host/bcm2835.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c
> index 1704082..bbb1084 100644
> --- a/drivers/mmc/host/bcm2835.c
> +++ b/drivers/mmc/host/bcm2835.c
> @@ -1331,7 +1331,7 @@ int bcm2835_add_host(struct bcm2835_host *host)
>  	mmc->max_segs = 128;
>  	mmc->max_req_size = 524288;
>  	mmc->max_seg_size = mmc->max_req_size;
> -	mmc->max_blk_size = 512;
> +	mmc->max_blk_size = 1024;
>  	mmc->max_blk_count =  65535;
>  
>  	/* report supported voltage ranges */
> -- 
> 1.7.9.5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20170213/6d86263a/attachment.sig>


More information about the linux-rpi-kernel mailing list