mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manoj Iyer <manoj.iyer@canonical.com>
To: Chris Ball <cjb@laptop.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
	linux-mmc@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Manoj Iyer <manoj.iyer@canonical.com>
Subject: Re: SDHCI regression since 2.6.39
Date: Tue, 13 Sep 2011 14:29:57 -0500 (CDT)	[thread overview]
Message-ID: <alpine.DEB.2.02.1109131419430.3556@lazy> (raw)
In-Reply-To: <m2aaa89t1m.fsf@bob.laptop.org>


@Jeremy, Could the problem be BIOS related? we have seen a number of 
issues with older bioses on the x220s.

Here are a few cards I tested with the 3.1 RC4 kernel on Ubuntu running on
a Lenovo X220. with Ricoh e823 card reader.

== kernel version ==
Linux u 3.1.0-0301rc4-generic #201108290905 SMP MonO Aug 29 09:11:07 UTC 
2011 x86_64 x86_64 x86_64 GNU/Linux
This is the upstream RC4 kernel build for ubuntu. 
http://kernel.ubuntu.com/~kernel-ppa/mainline/

== LSPCI output for SD card reader ==
0d:00.0 System peripheral [0880]: Ricoh Co Ltd Device [1180:e823] (rev 04) (prog-if 01)
 	Subsystem: Lenovo Device [17aa:21db]
 	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 	Latency: 0, Cache Line Size: 64 bytes
 	Interrupt: pin A routed to IRQ 16
 	Region 0: Memory at 91500000 (32-bit, non-prefetchable) [size=256]
 	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
 		Address: 0000000000000000  Data: 0000
 	Capabilities: [78] Power Management version 3
 		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
 		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME+
 	Capabilities: [80] Express (v1) Endpoint, MSI 00
 		DevCap:	MaxPayload 128 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
 			ExtTag- AttnBtn+ AttnInd+ PwrInd+ RBE+ FLReset-
 		DevCtl:	Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
 			RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
 			MaxPayload 128 bytes, MaxReadReq 128 bytes
 		DevSta:	CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
 		LnkCap:	Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <4us, L1 unlimited
 			ClockPM+ Surprise- LLActRep- BwNot-
 		LnkCtl:	ASPM L1 Enabled; RCB 64 bytes Disabled- Retrain- CommClk+
 			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
 		LnkSta:	Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
 	Capabilities: [100 v1] Virtual Channel
 		Caps:	LPEVC=0 RefClk=100ns PATEntryBits=1
 		Arb:	Fixed- WRR32- WRR64- WRR128-
 		Ctrl:	ArbSelect=Fixed
 		Status:	InProgress-
 		VC0:	Caps:	PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
 			Arb:	Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
 			Ctrl:	Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
 			Status:	NegoPending- InProgress-
 	Capabilities: [800 v1] Advanced Error Reporting
 		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
 		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
 		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
 		CESta:	RxErr+ BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
 		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
 		AERCap:	First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
 	Kernel driver in use: sdhci-pci
 	Kernel modules: sdhci-pci

== Sandisk Extreme Pro 16GB ==
Was able to mount Ultra high speed SDHC card 45MB/s, read and write works.

[   60.578630] mmc0: new ultra high speed SDHC card at address e624
[   60.611808] mmcblk0: mmc0:e624 SD16G 14.8 GiB 
[   60.644314]  mmcblk0: p1
[   60.947772] mmcblk0: error -84 transferring data, sector 8192, nr 8, cmd response 0x900, card status 0xb00
[   60.947777] mmcblk0: retrying using single block read

/dev/mmcblk0p1 on /media/New Volume type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)

== Sandisk 2GB SD card ==
Was able to mount Sandisk SD card, read and write works.
[  298.540999] mmc0: new SD card at address 0002
[  298.541306] mmcblk0: mmc0:0002 00000 1.86 GiB 
[  298.543157]  mmcblk0: p1

/dev/mmcblk0p1 on /media/E0FD-1813 type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)

== Transcend 2GB MMC plus card ==
Was able to mount and read/write. Shows up as SD card.
[  734.032981] mmc0: error -110 whilst initialising MMC card
[  734.132920] mmc0: error -110 whilst initialising MMC card
[  734.228244] mmc0: new MMC card at address 0001
[  734.228631] mmcblk0: mmc0:0001 MMC    1.87 GiB 
[  734.229834]  mmcblk0: p1
u@u:~$

/dev/mmcblk0p1 on /media/New Volume type vfat 
(rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)

Cheers
--
====================
Manoj Iyer
Ubuntu/Canonical
Hardware Enablement
====================


On Tue, 13 Sep 2011, Chris Ball wrote:

> Hi,
>
> On Tue, Sep 13 2011, Jeremy Fitzhardinge wrote:
>>> If it is running, and not helping, can I persuade you to try a full
>>> bisection?
>>
>> OK, will do.
>
> Thank you!
>
>>>   I don't think we have other reports of this bug, and the
>>> only other person who has reported something like it wasn't a kernel
>>> hacker.
>>
>> That's interesting; the X220 is a pretty common machine these days, I
>> think.  I wonder if there's variations in the SD controller or something?
>
> I just asked Matthew Garrett to check his X220, and his has the same e823
> controller as you, is running a 3.1-rc kernel, and everything's working.
>
> So it's not even variation in the controller model, it's something even
> more subtle.  Perhaps try some different cards?  What capacity/speed is
> the one you're trying?  If there is a per-card difference, I suppose
> we'd expect it to be that slower cards work and faster cards fail
> (given the nature of the patch I linked in my last mail).
>
> Thanks,
>
> - Chris.
> -- 
> Chris Ball   <cjb@laptop.org>   <http://printf.net/>
> One Laptop Per Child
>
>


  reply	other threads:[~2011-09-13 19:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-13  0:29 Jeremy Fitzhardinge
2011-09-13  0:36 ` Jeremy Fitzhardinge
2011-09-13 13:22 ` Chris Ball
2011-09-13 17:00   ` Jeremy Fitzhardinge
2011-09-13 17:12     ` Chris Ball
2011-09-13 18:43       ` Jeremy Fitzhardinge
2011-09-13 18:49         ` Chris Ball
2011-09-13 19:29           ` Manoj Iyer [this message]
2011-09-13 20:27             ` Jeremy Fitzhardinge
2011-09-13 20:29               ` Philip Rakity
2011-09-13 20:38               ` Jeremy Fitzhardinge
     [not found]               ` <D45CBF70-F0B1-453A-9E31-A621F52C21B9@marvell.com>
     [not found]                 ` <4E6FC422.9080306@goop.org>
     [not found]                   ` <7C3ED924-555D-4C50-9000-36077650328C@marvell.com>
     [not found]                     ` <4E6FCE28.5040403@goop.org>
     [not found]                       ` <F54ECF19-5E4C-40A6-8E26-99BF223F9FE2@marvell.com>
2011-09-13 22:32                         ` Jeremy Fitzhardinge
2011-09-13 22:42                           ` Jeremy Fitzhardinge
2011-09-13 22:48                             ` Philip Rakity
2011-09-14  0:52                               ` Jeremy Fitzhardinge
2011-09-14 13:48                                 ` Chris Ball
2011-09-14 16:28                                   ` Jeremy Fitzhardinge
2011-09-14 18:38                                     ` Chris Ball
2011-09-14 19:54                                       ` Jeremy Fitzhardinge
2011-11-03 12:53                                         ` CaT
2011-09-13 20:20           ` Jeremy Fitzhardinge

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=alpine.DEB.2.02.1109131419430.3556@lazy \
    --to=manoj.iyer@canonical.com \
    --cc=cjb@laptop.org \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®