linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Strobach <lalochcz@gmail.com>
To: linux-mmc@vger.kernel.org
Subject: kernel 2.6.38.6 MMC controller problem (fwd)
Date: Mon, 16 May 2011 10:42:10 +0200	[thread overview]
Message-ID: <BANLkTinJem0PdpCmRBSpVzarDqevkjc6Lg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTinbJfDLp5nfkq-VTYLJvihT1thXvA@mail.gmail.com>

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

It's actually an oops. The backtrace is attached.

David

On Mon, May 16, 2011 at 09:06, Guennadi Liakhovetski
<g.liakhovetski@gmx.de> wrote:
>
> (added the ML and previous discussion participants to CC)
>
> Looks like my patch was indeed less obviious, than we thought. We need a
> lock-up backtrace, I guess. David, can you use a sysrq to get a trace?
> Something like
>
> echo w > /proc/sysrq-trigger
> or even
> echo t > /proc/sysrq-trigger
>
> and provide traces? The one with 't' will be probably huge, so, maybe you
> could do it with as few tasks running as possible, maybe without a
> graphical login. Or I would have to test it with my Laptop, to which I'll
> get access tomorrow.
>
> Thanks
> Guennadi
> ---
> Guennadi Liakhovetski, Ph.D.
> Freelance Open-Source Software Developer
> http://www.open-technology.de/
>
> ---------- Forwarded message ----------
> Date: Mon, 16 May 2011 01:57:04 +0200
> From: David Strobach <lalochcz@gmail.com>
> To: gregkh@suse.de, g.liakhovetski@gmx.de
> Cc: horms@verge.net.au, damm@opensource.se
> Subject: kernel 2.6.38.6 MMC controller problem
>
> Hello,
>
> I found (by bisection), that the commit 3fe962c (
> http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.38.y.git;a=commit;h=3fe962c04818a4634255beb3be9f236d36350543)
> introduced regression in MMC card detection. The card is either not detected
> or causes the system to hang. There is related forum thread at
> https://bbs.archlinux.org/viewtopic.php?id=118751. Relevant part of my own
> log follows:
>
> May 16 00:15:13 localhost kernel: [  134.670685] mmc0: new SD card at
> address aaaa
> May 16 00:15:23 localhost kernel: [  144.715115] mmc0: Timeout waiting for
> hardware interrupt.
> May 16 00:15:23 localhost kernel: [  144.715119] sdhci: =========== REGISTER
> DUMP (mmc0)===========
> May 16 00:15:23 localhost kernel: [  144.715126] sdhci: Sys addr: 0xbae85840
> | Version:  0x00000400
> May 16 00:15:23 localhost kernel: [  144.715133] sdhci: Blk size: 0x00007040
> | Blk cnt:  0x00000001
> May 16 00:15:23 localhost kernel: [  144.715140] sdhci: Argument: 0x00000200
> | Trn mode: 0x00000013
> May 16 00:15:23 localhost kernel: [  144.715146] sdhci: Present:  0x01ff0001
> | Host ctl: 0x00000003
> May 16 00:15:23 localhost kernel: [  144.715153] sdhci: Power:    0x0000000f
> | Blk gap:  0x00000000
> May 16 00:15:23 localhost kernel: [  144.715159] sdhci: Wake-up:  0x00000000
> | Clock:    0x00000100
> May 16 00:15:23 localhost kernel: [  144.715166] sdhci: Timeout:  0x00000009
> | Int stat: 0x00000000
> May 16 00:15:23 localhost kernel: [  144.715172] sdhci: Int enab: 0x02ff00cb
> | Sig enab: 0x02ff00cb
> May 16 00:15:23 localhost kernel: [  144.715178] sdhci: AC12 err: 0x00000000
> | Slot int: 0x00000000
> May 16 00:15:23 localhost kernel: [  144.715185] sdhci: Caps:     0x01e032b2
> | Caps_1:   0x00000000
> May 16 00:15:23 localhost kernel: [  144.715192] sdhci: Cmd:      0x0000101a
> | Max curr: 0x00000040
> May 16 00:15:23 localhost kernel: [  144.715194] sdhci:
> ===========================================
> May 16 00:15:31 localhost kernel: [  152.604505] mmc0: Card removed during
> transfer!
> May 16 00:15:31 localhost kernel: [  152.604511] mmc0: Resetting controller.
> May 16 00:15:31 localhost kernel: [  152.604568] mmcblk0: unable to set
> block size to 512: -123
> May 16 00:15:31 localhost kernel: [  152.604687] mmcblk: probe of mmc0:aaaa
> failed with error -22
> May 16 00:15:31 localhost kernel: [  152.801534] mmc0: card aaaa removed
> May 16 00:15:31 localhost kernel: [  152.814827] mmc0: Got command interrupt
> 0x00030000 even though no command operation was in progress.
> May 16 00:15:31 localhost kernel: [  152.814835] sdhci: =========== REGISTER
> DUMP (mmc0)===========
> May 16 00:15:31 localhost kernel: [  152.814844] sdhci: Sys addr: 0xbae85840
> | Version:  0x00000400
> May 16 00:15:31 localhost kernel: [  152.814853] sdhci: Blk size: 0x00007040
> | Blk cnt:  0x00000001
> May 16 00:15:31 localhost kernel: [  152.814860] sdhci: Argument: 0x00000200
> | Trn mode: 0x00000013
> May 16 00:15:31 localhost kernel: [  152.814867] sdhci: Present:  0x01f00001
> | Host ctl: 0x00000000
> May 16 00:15:31 localhost kernel: [  152.814874] sdhci: Power:    0x0000000f
> | Blk gap:  0x00000000
> May 16 00:15:31 localhost kernel: [  152.814881] sdhci: Wake-up:  0x00000000
> | Clock:    0x00004007
> May 16 00:15:31 localhost kernel: [  152.814888] sdhci: Timeout:  0x00000009
> | Int stat: 0x00000000
> May 16 00:15:31 localhost kernel: [  152.814895] sdhci: Int enab: 0x00ff00c3
> | Sig enab: 0x00ff00c3
> May 16 00:15:31 localhost kernel: [  152.814902] sdhci: AC12 err: 0x00000000
> | Slot int: 0x00000000
> May 16 00:15:31 localhost kernel: [  152.814909] sdhci: Caps:     0x01e032b2
> | Caps_1:   0x00000000
> May 16 00:15:31 localhost kernel: [  152.814916] sdhci: Cmd:      0x0000101a
> | Max curr: 0x00000040
> May 16 00:15:31 localhost kernel: [  152.814919] sdhci:
> ===========================================
>
>
> Regards
> David Strobach

[-- Attachment #2: mmc-oops --]
[-- Type: application/octet-stream, Size: 4004 bytes --]

[  354.484676] mmc0: new SDHC card at address b368
[  354.485567] mmcblk0: mmc0:b368 NCard 3.72 GiB 
[  354.486431] divide error: 0000 [#1] PREEMPT SMP 
[  354.487293] last sysfs file: /sys/devices/virtual/bdi/179:0/uevent
[  354.488271] CPU 3 
[  354.488588] Modules linked in: mmc_block usbhid hid netconsole configfs ext2 btusb bluetooth vboxdrv cpufreq_ondemand acpi_cpufreq freq_table mperf uvcvideo videodev v4l2_compat_ioctl32 snd_hda_codec_hdmi tpm_infineon snd_hda_codec_realtek snd_hda_intel nvidia(P) snd_hda_codec snd_pcm snd_timer snd_page_alloc snd_hwdep joydev i2c_core arc4 snd_mixer_oss ecb tpm_tis ehci_hcd tpm toshiba_acpi sparse_keymap tpm_bios usbcore sg toshiba_bluetooth processor snd thermal battery button psmouse video ac soundcore pcspkr iwlagn iwlcore serio_raw mac80211 cfg80211 rfkill sdhci_pci sdhci mmc_core intel_ips intel_agp iTCO_wdt intel_gtt iTCO_vendor_support evdev e1000e ext4 mbcache jbd2 crc16 dm_mod sr_mod cdrom sd_mod ahci libahci libata scsi_mod
[  354.501153] 
[  354.501389] Pid: 3065, comm: mmcqd/0 Tainted: P            2.6.38-ARCH #1 TOSHIBA TECRA S11/Portable PC
[  354.503019] RIP: 0010:[<ffffffffa0127f95>]  [<ffffffffa0127f95>] sdhci_send_command+0x575/0xbf0 [sdhci]
[  354.504532] RSP: 0018:ffff88012c5d1b60  EFLAGS: 00010046
[  354.505368] RAX: 0000000000000000 RBX: ffff88012e33fc80 RCX: 0000000000000000
[  354.506499] RDX: 0000000000000000 RSI: 0000000008000085 RDI: ffff88012e33f800
[  354.507623] RBP: ffff88012c5d1be0 R08: 0000000000000000 R09: 0000000010624dd3
[  354.508747] R10: 0000000000000001 R11: 0000000000000001 R12: ffff88012c5d1ce0
[  354.509878] R13: ffff88012c5d1d50 R14: 0000000000000003 R15: ffff88012c70fc00
[  354.511002] FS:  0000000000000000(0000) GS:ffff8800beec0000(0000) knlGS:0000000000000000
[  354.512280] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  354.513188] CR2: 00007f2f9c881200 CR3: 0000000001693000 CR4: 00000000000006e0
[  354.514312] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  354.515436] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  354.516567] Process mmcqd/0 (pid: 3065, threadinfo ffff88012c5d0000, task ffff88012b1c75f0)
[  354.517883] Stack:
[  354.518200]  ffff88012c5d1bf0 ffffffffa0152e3c 0000000000000000 0000000000000000
[  354.519487]  ffff88012b1c75f0 0000000000000000 0000000000000000 ffff88012b1c75f0
[  354.520765]  ffffffff81051f20 0000000000000286 ffff88012c5d1bd0 ffff88012e33f800
[  354.522044] Call Trace:
[  354.522441]  [<ffffffffa0152e3c>] ? __mmc_claim_host+0x12c/0x180 [mmc_core]
[  354.523543]  [<ffffffff81051f20>] ? default_wake_function+0x0/0x10
[  354.524518]  [<ffffffffa01286f9>] sdhci_request+0xe9/0x110 [sdhci]
[  354.525494]  [<ffffffffa01524e2>] mmc_wait_for_req+0x102/0x140 [mmc_core]
[  354.526571]  [<ffffffffa11576ae>] mmc_blk_issue_rw_rq+0x20e/0x690 [mmc_block]
[  354.527697]  [<ffffffffa01525b0>] ? mmc_wait_done+0x0/0x10 [mmc_core]
[  354.528715]  [<ffffffff811f8018>] ? cfq_dispatch_requests+0x1b8/0xb60
[  354.529740]  [<ffffffffa115802d>] mmc_blk_issue_rq+0x10d/0x1a0 [mmc_block]
[  354.529742]  [<ffffffff811e5e9e>] ? blk_start_request+0x2e/0x40
[  354.529744]  [<ffffffffa11581c2>] mmc_queue_thread+0x102/0x130 [mmc_block]
[  354.529746]  [<ffffffffa11580c0>] ? mmc_queue_thread+0x0/0x130 [mmc_block]
[  354.529754]  [<ffffffff81079a47>] kthread+0x87/0x90
[  354.529758]  [<ffffffff8100bc24>] kernel_thread_helper+0x4/0x10
[  354.529760]  [<ffffffff810799c0>] ? kthread+0x0/0x90
[  354.529761]  [<ffffffff8100bc20>] ? kernel_thread_helper+0x0/0x10
[  354.529762] Code: 01 45 19 f6 41 83 e6 fe 41 83 c6 03 e9 dc fa ff ff 0f 1f 44 00 00 41 8b 4d 04 44 8b 83 64 01 00 00 31 d2 41 b9 d3 4d 62 10 89 c8 <41> f7 f0 41 8b 55 00 89 c1 89 d0 41 f7 e1 c1 ea 06 01 d1 81 e6 
[  354.529774] RIP  [<ffffffffa0127f95>] sdhci_send_command+0x575/0xbf0 [sdhci]
[  354.529777]  RSP <ffff88012c5d1b60>
[  354.529779] ---[ end trace f2e51128a7e7056a ]---
[  354.529780] note: mmcqd/0[3065] exited with preempt_count 1

  parent reply	other threads:[~2011-05-16  8:42 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-16  7:06 kernel 2.6.38.6 MMC controller problem (fwd) Guennadi Liakhovetski
     [not found] ` <BANLkTinbJfDLp5nfkq-VTYLJvihT1thXvA@mail.gmail.com>
2011-05-16  8:42   ` David Strobach [this message]
2011-05-16  8:45   ` Guennadi Liakhovetski
2011-05-16 10:26     ` Jaehoon Chung
2011-05-16 10:39       ` Guennadi Liakhovetski
2011-05-16 10:48         ` Jaehoon Chung
2011-05-16 14:52     ` Chris Ball
2011-05-16 15:15       ` David Strobach
2011-05-16 15:56         ` Chris Ball
2011-05-16 16:07           ` Guennadi Liakhovetski
2011-05-16 16:37             ` Chris Ball
2011-05-16 16:42               ` Guennadi Liakhovetski
2011-05-16 17:56                 ` Linus Walleij
2011-05-17  9:20                   ` Dong, Chuanxiao
2011-05-18  5:29                     ` Linus Walleij
2011-05-18  6:01                       ` Dong, Chuanxiao
2011-05-16 16:07           ` David Strobach
2011-05-16 16:29           ` David Strobach
2011-05-18 13:29           ` David Strobach

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=BANLkTinJem0PdpCmRBSpVzarDqevkjc6Lg@mail.gmail.com \
    --to=lalochcz@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).