From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christo Radev Subject: Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc Date: Mon, 9 May 2016 04:30:37 -0700 (PDT) Message-ID: <13fce120-e6c9-4e27-a2fe-497da668e83e@googlegroups.com> References: <1461827998-12192-1-git-send-email-oliver@schinagl.nl> <57285162.2000704@schinagl.nl> <5729F07C.3080308@schinagl.nl> <948be370-4401-43cb-862e-d4376755a75d@googlegroups.com> <5729F6D6.8030100@schinagl.nl> <4704fa35-9a2a-4e6e-8fd4-f4778405c598@googlegroups.com> <572A0052.9060202@schinagl.nl> <2e745ef7-ddc0-40fc-b867-414543690276@googlegroups.com> <572A10B3.2020803@schinagl.nl> <4375220a-f939-4ed0-a6d7-2cf887b07509@googlegroups.com> <572B07C0.7080601@schinagl.nl> Reply-To: christo.radev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_256_657442798.1462793437431" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <572B07C0.7080601-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: linux-sunxi Cc: christo.radev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, 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, oliver-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org List-Id: devicetree@vger.kernel.org ------=_Part_256_657442798.1462793437431 Content-Type: multipart/alternative; boundary="----=_Part_257_1198564685.1462793437433" ------=_Part_257_1198564685.1462793437433 Content-Type: text/plain; charset=UTF-8 Hi Olliver, Sorry for the delay but I was on a place without Internet access. Is there something wrong with the logs? On Thursday, May 5, 2016 at 11:43:49 AM UTC+3, Olliver Schinagl wrote: > > 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). > Booted from SD card with 8-bit patched kernel > root@egpr:~# dmesg | grep mmc > [ 3.599625] sunxi-mmc 1c0f000.mmc: Got CD GPIO > [ 3.631883] sunxi-mmc 1c0f000.mmc: base:0xf08da000 irq:26 > [ 3.669058] mmc0: host does not support reading read-only switch, > assuming write-enable > [ 3.671674] sunxi-mmc 1c11000.mmc: base:0xf08de000 irq:27 > [ 3.672064] mmc0: new high speed SDHC card at address 0007 > [ 3.673068] mmcblk0: mmc0:0007 SD04G 3.71 GiB > [ 3.674785] mmcblk0: p1 > [ 3.682261] sunxi-mmc 1c11000.mmc: smc 1 err, cmd 8, RTO !! > [ 3.689280] sunxi-mmc 1c11000.mmc: smc 1 err, cmd 55, RTO !! > [ 3.690146] sunxi-mmc 1c11000.mmc: smc 1 err, cmd 55, RTO !! > [ 3.690977] sunxi-mmc 1c11000.mmc: smc 1 err, cmd 55, RTO !! > [ 3.691808] sunxi-mmc 1c11000.mmc: smc 1 err, cmd 55, RTO !! > [ 3.745505] mmc1: MAN_BKOPS_EN bit is not set > [ 3.749187] sunxi-mmc 1c11000.mmc: smc 1 err, 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: switch to bus width 2 failed > [ 3.753586] mmc1: new high speed MMC card at address 0001 > [ 3.754479] mmcblk1: mmc1:0001 P1XXXX 3.60 GiB > [ 3.754961] mmcblk1boot0: mmc1:0001 P1XXXX partition 1 16.0 MiB > [ 3.755604] mmcblk1boot1: mmc1:0001 P1XXXX partition 2 16.0 MiB > [ 3.757045] mmcblk1: p1 > [ 4.216879] EXT4-fs (mmcblk0p1): mounted filesystem with writeback > 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: 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 (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 (4 bits) > timing spec: 1 (mmc high-speed) > signal voltage: 0 (3.30 > -- 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. ------=_Part_257_1198564685.1462793437433 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Olliver,

Sorry for the delay but I was on a plac= e without Internet access.

Is there something wrong with the logs?
On Thursday, May 5, 2016 at 11:43:49 AM UTC+3, Olliver Schinagl wrote= :
=20 =20 =20
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).
Booted from SD card with 8-bit patched kernel
root@egpr
:~# dmesg | grep mmc [ =C2=A0 =C2=A03.599625] sunxi-mmc 1c0f000.mmc:<= span style=3D"color:#000"> Got CD GPIO
[ =C2=A0 =C2=A03.631883] sunxi-mmc 1c0f000.mmc:<= span style=3D"color:#000"> base:0xf08da000 irq:<= span style=3D"color:#066">26
[ =C2=A0 =C2=A03.669058] mmc0: host does not support reading read-only swit= ch, assuming write-enable
[ =C2=A0 =C2=A03.671674] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> base:0xf08de000
irq:<= span style=3D"color:#066">27
[ =C2=A0 =C2=A03.672064] mmc0: new high speed SDHC card at address 0007
[ =C2=A0 =C2=A03.673068] mmcblk0: mmc0:0007 SD04G 3.71<= span style=3D"color:#000"> GiB
[ =C2=A0 =C2=A03.674785] =C2=A0mmcblk0: p1
[ =C2=A0 =C2=A03.682261] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> smc 1 err, cmd 8, RTO !!
[ =C2=A0 =C2=A03.689280] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> smc 1 err, cmd 55, RTO !!
[ =C2=A0 =C2=A03.690146] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> smc 1 err, cmd 55, RTO !!
[ =C2=A0 =C2=A03.690977] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> smc 1 err, cmd 55, RTO !!
[ =C2=A0 =C2=A03.691808] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> smc 1 err, cmd 55, RTO !!
[ =C2=A0 =C2=A03.745505] mmc1: MAN_BKOPS_EN bit is not set
[ =C2=A0 =C2=A03.749187] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> smc 1 err, cmd 8, RD EBE !!
[ =C2=A0 =C2=A03.749229] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> data error, sending stop command
[ =C2=A0 =C2=A03.749247] sunxi-mmc 1c11000.mmc:<= span style=3D"color:#000"> send stop command failed
[ =C2=A0 =C2=A03.749268] mmc1: switch to bus width 2 failed
[ =C2=A0 =C2=A03.753586] mmc1: new high speed MMC card at address 0001
[ =C2=A0 =C2=A03.754479] mmcblk1: mmc1:0001 P1XXXX 3.60 GiB
[ =C2=A0 =C2=A03.754961] mmcblk1boot0: mmc1:0001 P1XXXX partition 1 16.0 MiB
[ =C2=A0 =C2=A03.755604] mmcblk1boot1: mmc1:0001 P1XXXX partition 2 16.0 MiB
[ =C2=A0 =C2=A03.757045] =C2=A0mmcblk1: p1
[ =C2=A0 =C2=A04.216879] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts= : (null)
[ =C2=A0 =C2=A07.907002] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=3D600,errors=3Dremount-ro

root@egpr
:~# cat /sys/kernel/debug/mmc0/ios
clock
: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A050000000 Hz
vdd
: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A021 (3.3 ~ 3.4 V) bus mode: =C2=A0 =C2=A0 =C2=A0 2= (
push-= pull)
chip select: =C2=A0 =C2=A0
0 (don't care)
power mode: =C2=A0 =C2=A0 2 (on)
bus width: =C2=A0 =C2=A0 =C2=A02 (4 bits)
timing spec: =C2=A0 =C2=A02 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type: =C2=A0 =C2=A00 (driver type B)
root@egpr:~# cat /sys/kernel/debug/mmc1/ios
clock: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A050000000 Hz
vdd: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A021 (3.3 ~ 3.4= V)
bus mode: =C2=A0 =C2=A0 =C2=A0 2 (push-pull)
chip select: =C2=A0 =C2=A00 (don'
t care)
power mode
: =C2=A0 =C2=A0 2
(on)
bus width
: =C2=A0 =C2=A0 =C2=A02= (
4 bits
)
timing spec
: =C2=A0 =C2=A01
(mmc high-<= span style=3D"color:#000">speed)
signal voltage: 0 (3.30<span s
<= div>

--
You received this message because you are subscribed to the Google Groups &= quot;linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to linux-s= unxi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_257_1198564685.1462793437433-- ------=_Part_256_657442798.1462793437431--