All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olliver Schinagl <oliver-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
To: Christo Radev
	<christo.radev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-sunxi <linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Cc: radoslav.kolev-1W28NRE8jL9DPfheJLI6IQ@public.gmane.org,
	wens-jdAy2FN1RRM@public.gmane.org,
	maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org,
	tsvetan-kyXcfZUBQGPQT0dZR+AlfA@public.gmane.org,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	pawel.moll-5wv7dgnIgG8@public.gmane.org,
	mark.rutland-5wv7dgnIgG8@public.gmane.org,
	ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
	galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org,
	hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	dev-3kdeTeqwOZ9EV1b7eY7vFQ@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc
Date: Thu, 5 May 2016 10:43:44 +0200	[thread overview]
Message-ID: <572B07C0.7080601@schinagl.nl> (raw)
In-Reply-To: <4375220a-f939-4ed0-a6d7-2cf887b07509-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 6237 bytes --]

Hey Christo,

On 04-05-16 21:40, Christo Radev wrote:
> Hi Oliver,
>
> I start performance tests for eMMC, SD/MMC, USB, SATA SSD devices and 
> will post the result when ready.
>
> As a beginning I can say that eMMC is accessed via 4-bit bus without 
> matter of the patch used.
> There you are the content of /sys/kernel/debug/mmcX/ios (where X is 
> number of eMMC or SD/MMC device).
> |
> BootedfromSD card with8-bit patched kernel
> root@egpr:~# dmesg | grep mmc
> [3.599625]sunxi-mmc 1c0f000.mmc:GotCD GPIO
> [3.631883]sunxi-mmc 1c0f000.mmc:base:0xf08da000irq:26
> [3.669058]mmc0:host does notsupport reading read-only switch,assuming 
> write-enable
> [3.671674]sunxi-mmc 1c11000.mmc:base:0xf08de000irq:27
> [3.672064]mmc0:newhigh speed SDHC card at address 0007
> [3.673068]mmcblk0:mmc0:0007SD04G 3.71GiB
> [3.674785] mmcblk0:p1
> [3.682261]sunxi-mmc 1c11000.mmc:smc 1err,cmd 8,RTO !!
> [3.689280]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.690146]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.690977]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.691808]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.745505]mmc1:MAN_BKOPS_EN bit isnotset
> [3.749187]sunxi-mmc 1c11000.mmc:smc 1err,cmd 8,RD EBE !!
> [3.749229]sunxi-mmc 1c11000.mmc:data error,sending stop command
> [3.749247]sunxi-mmc 1c11000.mmc:send stop command failed
> [3.749268]mmc1:switchto bus width 2failed
> [3.753586]mmc1:newhigh speed MMC card at address 0001
> [3.754479]mmcblk1:mmc1:0001P1XXXX 3.60GiB
> [3.754961]mmcblk1boot0:mmc1:0001P1XXXX partition 116.0MiB
> [3.755604]mmcblk1boot1:mmc1:0001P1XXXX partition 216.0MiB
> [3.757045] mmcblk1:p1
> [4.216879]EXT4-fs (mmcblk0p1):mounted filesystem withwriteback data 
> mode.Opts:(null)
> [7.907002]EXT4-fs (mmcblk0p1):re-mounted.Opts:commit=600,errors=remount-ro
>
> root@egpr:~# cat /sys/kernel/debug/mmc0/ios
> clock:50000000Hz
> vdd:21(3.3~3.4V)
> bus mode:2(push-pull)
> chip select:0(don't care)
> power mode:     2 (on)
> bus width:      2 (4 bits)
> timing spec:    2 (sd high-speed)
> signal voltage: 0 (3.30 V)
> driver type:    0 (driver type B)
> root@egpr:~# cat /sys/kernel/debug/mmc1/ios
> clock:          50000000 Hz
> vdd:            21 (3.3 ~ 3.4 V)
> bus mode:       2 (push-pull)
> chip select:    0 (don't care)
> power mode:2(on)
> bus width:2(4bits)
> timing spec:1(mmc high-speed)
> signal voltage:0(3.30V)
> driver type:0(driver type B)
>
> BootedfromSATA SSD with4-bit patched kernel
> [3.598868]sunxi-mmc 1c0f000.mmc:GotCD GPIO
> [3.631154]sunxi-mmc 1c0f000.mmc:base:0xf08da000irq:26
> [3.668313]mmc0:host does notsupport reading read-only switch,assuming 
> write-enable
> [3.670908]sunxi-mmc 1c11000.mmc:base:0xf08de000irq:27
> [3.671324]mmc0:newhigh speed SDHC card at address 0007
> [3.672302]mmcblk0:mmc0:0007SD04G 3.71GiB
> [3.674067] mmcblk0:p1
> [3.681882]sunxi-mmc 1c11000.mmc:smc 1err,cmd 8,RTO !!
> [3.686129]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.686996]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.687843]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.688672]sunxi-mmc 1c11000.mmc:smc 1err,cmd 55,RTO !!
> [3.724762]mmc1:MAN_BKOPS_EN bit isnotset
> [3.731196]mmc1:newhigh speed MMC card at address 0001
> [3.732141]mmcblk1:mmc1:0001P1XXXX 3.60GiB
> [3.732553]mmcblk1boot0:mmc1:0001P1XXXX partition 116.0MiB
> [3.732960]mmcblk1boot1:mmc1:0001P1XXXX partition 216.0MiB
> [3.734186] mmcblk1:p1
>
> root@egpr:~# cat /sys/kernel/debug/mmc0/ios
> clock:50000000Hz
> vdd:21(3.3~3.4V)
> bus mode:2(push-pull)
> chip select:0(don't care)
> power mode:     2 (on)
> bus width:      2 (4 bits)
> timing spec:    2 (sd high-speed)
> signal voltage: 0 (3.30 V)
> driver type:    0 (driver type B)
> root@egpr:~# cat /sys/kernel/debug/mmc1/ios
> clock:          50000000 Hz
> vdd:            21 (3.3 ~ 3.4 V)
> bus mode:       2 (push-pull)
> chip select:    0 (don't care)
> power mode:2(on)
> bus width:2(4bits)
> timing spec:1(mmc high-speed)
> signal voltage:0(3.30V)
> driver type:0(driver type B)
> |
>
> The brief performance test using dd shows the similar results to both 
> 4- and 8-bit patches
> |
> eMMC 8-bit patch R/W test withdd
> root@egpr:/mnt# dd if=/dev/zero of=1GBfilebs=1Mcount=1K
> 1024+0records in
> 1024+0records out
> 1073741824bytes (1.1GB)copied,79.9305s,13.4MB/s
> root@egpr:/mnt# dd of=/dev/nullif=1GBfile
> 2097152+0records in
> 2097152+0records out
> 1073741824bytes (1.1GB)copied,49.5899s,21.7MB/s
>
> eMMC 4-bit patch R/W test withdd
> root@egpr:/mnt# dd if=/dev/zero of=1GBfilebs=1Mcount=1K
> 1024+0records in
> 1024+0records out
> 1073741824bytes (1.1GB)copied,78.7925s,13.6MB/s
> root@egpr:/mnt# dd of=/dev/nullif=1GBfile
> 2097152+0records in
> 2097152+0records out
> 1073741824bytes (1.1GB)copied,53.8002s,20.0MB/s
> |
>
> In my opinion 8-bit access to eMMC is broken in Allwinned A20 or in 
> the mmc driver.
Nah, it's not broken. But Allwinner 'forgot' to map the mmc controller 
pins to the mux and thus the additional 4 bits are not on the actual 
pins. It is sad and wasn't necessary, I'm sure it's just a small over 
sight, which is costing us performance now. But we get a big improvement 
by using the latest 4.6-rc1+ kernel by using HS-DDR mode. In my early 
tests I saw 40 MB/s read and 17 MB/s write speeds. It would be nice to 
imagine what the additional 8 bits would have brought us, but alas.

As I said however, the Lime2 PCB brings out all 8 bits and if we ever 
get a pin-compatible A40, there is a chance it will have 8 bit emmc. The 
Lime2 does not have 1.8 3.3 switcher on the vqmmc lines however, but I 
am not sure if we need this at all for higher speeds.

If 8 bit would give us double the bandwith, it could be we'd get 80 
MB/s/40 MB/s in theory, but I think that's already beyond the current 
chip anyway.

Comparing it to the current NAND chips, which top ou at 4MB/s read if 
memory serves me, eMMC makes the boards quite capable :)

olliver
>
> Best regards
> Chris
>

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 89820 bytes --]

  parent reply	other threads:[~2016-05-05  8:43 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-28  7:19 [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc Olliver Schinagl
2016-04-28  7:19 ` Olliver Schinagl
2016-04-28  7:19 ` Olliver Schinagl
2016-05-02 10:55 ` Maxime Ripard
2016-05-02 10:55   ` Maxime Ripard
2016-05-02 10:55   ` Maxime Ripard
2016-05-03  3:33 ` Chen-Yu Tsai
2016-05-03  3:33   ` Chen-Yu Tsai
2016-05-03  3:33   ` Chen-Yu Tsai
2016-05-03  7:21   ` Olliver Schinagl
2016-05-03  7:21     ` Olliver Schinagl
2016-05-03  7:21     ` Olliver Schinagl
2016-05-03  7:25     ` Chen-Yu Tsai
2016-05-03  7:25       ` Chen-Yu Tsai
2016-05-03  7:25       ` Chen-Yu Tsai
2016-05-04 12:30       ` Radoslav Kolev
2016-05-04 12:30         ` Radoslav Kolev
2016-05-04 12:30         ` Radoslav Kolev
2016-05-04 12:52         ` Olliver Schinagl
2016-05-04 12:52           ` Olliver Schinagl
2016-05-04 12:52           ` Olliver Schinagl
     [not found]           ` <5729F07C.3080308-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-04 13:07             ` Christo Radev
     [not found]               ` <948be370-4401-43cb-862e-d4376755a75d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-04 13:19                 ` Olliver Schinagl
     [not found]                   ` <5729F6D6.8030100-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-04 13:32                     ` Christo Radev
     [not found]                       ` <4704fa35-9a2a-4e6e-8fd4-f4778405c598-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-04 13:59                         ` Olliver Schinagl
     [not found]                           ` <572A0052.9060202-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-04 14:31                             ` Christo Radev
     [not found]                               ` <2e745ef7-ddc0-40fc-b867-414543690276-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-04 15:09                                 ` Olliver Schinagl
     [not found]                                   ` <572A10B3.2020803-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-04 15:50                                     ` Christo Radev
2016-05-04 17:24                                     ` Christo Radev
2016-05-04 19:40                                     ` Christo Radev
     [not found]                                       ` <4375220a-f939-4ed0-a6d7-2cf887b07509-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-05  8:43                                         ` Olliver Schinagl [this message]
     [not found]                                           ` <572B07C0.7080601-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-09 11:30                                             ` Christo Radev
2016-05-09 20:58                                         ` Christo Radev
     [not found]                                           ` <9fe7ebb6-6d74-4b73-b6d6-93b79650cdb6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-10 17:25                                             ` Christo Radev
     [not found]                                               ` <9745a80b-5444-43f7-b772-68684c96c9e5-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-10 18:46                                                 ` Olliver Schinagl
     [not found]                                                   ` <57322C8D.5060806-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-10 19:17                                                     ` Christo Radev
     [not found]                                                       ` <8afbe753-4e74-4b30-ad7e-a12027d28264-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-10 19:55                                                         ` Olliver Schinagl
     [not found]                                                           ` <57323CAB.7090202-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-10 21:22                                                             ` Christo Radev
     [not found]                                                               ` <f959ee5c-fa63-48f6-9819-4822c055b928-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-10 23:21                                                                 ` Christo Radev
     [not found]                                                                   ` <6bfa242e-c0ce-4dc5-9144-b3f16d8fb75c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-11  8:20                                                                     ` Olliver Schinagl
2016-07-15  8:39                                                                       ` stefan.mavrodiev at gmail.com
2016-07-15  8:39                                                                         ` stefan.mavrodiev
2016-07-15  8:39                                                                         ` stefan.mavrodiev-Re5JQEeQqe8AvxtiuMwx3w
2016-07-15  8:57                                                                         ` Olliver Schinagl
2016-07-15  8:57                                                                           ` Olliver Schinagl
2016-07-15  8:57                                                                           ` Olliver Schinagl
     [not found]                                                                           ` <6214e145-b408-70f1-bc6f-db066cbe94b1-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-07-15  9:01                                                                             ` Olliver Schinagl
2016-05-03  7:12 ` christo.radev at gmail.com
2016-05-03  7:12   ` christo.radev
2016-05-03  7:12   ` christo.radev
2016-05-03 13:14   ` Maxime Ripard
2016-05-03 13:14     ` Maxime Ripard
2016-05-03 13:14     ` Maxime Ripard
2016-05-03 15:02     ` christo.radev at gmail.com
2016-05-03 15:02       ` christo.radev
2016-05-03 15:02       ` christo.radev-Re5JQEeQqe8AvxtiuMwx3w
2016-05-03 15:52       ` Olliver Schinagl
2016-05-03 15:52         ` Olliver Schinagl
2016-05-03 15:52         ` Olliver Schinagl
     [not found]         ` <5728C929.3040709-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
2016-05-03 17:27           ` Christo Radev
2016-05-04  5:13         ` [linux-sunxi] " Priit Laes
2016-05-04  5:13           ` Priit Laes
2016-05-04  5:13           ` Priit Laes
     [not found]           ` <1462338781.15404.0.camel-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
2016-05-04  8:49             ` Christo Radev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=572B07C0.7080601@schinagl.nl \
    --to=oliver-dxlnbx3+1qmevqv0petr8a@public.gmane.org \
    --cc=christo.radev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=dev-3kdeTeqwOZ9EV1b7eY7vFQ@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
    --cc=radoslav.kolev-1W28NRE8jL9DPfheJLI6IQ@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=tsvetan-kyXcfZUBQGPQT0dZR+AlfA@public.gmane.org \
    --cc=wens-jdAy2FN1RRM@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.