From: "Andrew Hall" <andrew.a.hall@gmail.com>
To: 'Mark Lord' <liml@rtr.ca>
Cc: linux-ide@vger.kernel.org, robert.de.rooy@gmail.com
Subject: RE: CF flash PATA on libata failure to attach
Date: Wed, 27 Jun 2007 13:57:46 +1000 [thread overview]
Message-ID: <4681e04b.22b38c0a.78ec.6f76@mx.google.com> (raw)
In-Reply-To: <46815FF4.9040001@rtr.ca>
>
> This looks a lot like the other CF-card problem that was being debugged
> here over the past week -- the one where POLLING had to be turned on.
> Robert de Rooy (copied) was the reporter for that one.
> Perhaps you two could compare notes ?
>
> Cheers
Thanks for getting back to me. I read through the thread Robert initiated
with CF on PCMCIA and noted with interest that the issue seemed to be
related in the end to lost interrupts. However the compact flash I'm using
is an IDE/PATA device connected directly to the motherboard with no
intermediate devices such as PCMCIA. As the issue is unlikely to be the same
but maybe similar I followed the same path, applying the patches that Tejun
issued to 2.6.22rc6 to provide more debug information in the hope that
someone can help me identify this issue.
I have applied 2.6.22rc6 + timing-debug.patch +
disable-dev_init_params.patch as per:
http://marc.info/?l=linux-kernel&m=117966084223982&w=2
Here is the relevant output from dmesg:
Linux version 2.6.22-rc6 (root@localhost) (gcc version 4.1.1 20070105 (Red
Hat 4
.1.1-51)) #3 SMP Wed Jun 27 14:25:12 EST 2007
...
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19
scsi0 : ata_piix
scsi1 : ata_piix
ata1: SATA max UDMA/133 cmd 0x0001fa00 ctl 0x0001f902 bmdma 0x0001f600 irq 0
ata2: SATA max UDMA/133 cmd 0x0001f800 ctl 0x0001f702 bmdma 0x0001f608 irq 0
ata1: soft resetting port
ata1: reset complete
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: ATA-0: CF CARD 512MB, 20070131, max MWDMA2
ata1.00: 990864 sectors, multi 0: LBA
ata1.00: applying bridge limits
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: configured for MWDMA2
ata1: EH complete
ata2: soft resetting port
ata2: reset complete
ATA: abnormal status 0x7F on port 0x0001f807
ata2: EH complete
scsi 0:0:0:0: Direct-Access ATA CF CARD 512MB 2007 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 990864 512-byte hardware sectors (507 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't
support DP
O or FUA
sd 0:0:0:0: [sda] 990864 512-byte hardware sectors (507 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't
support DP
O or FUA
sda:<3>ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 in
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1: port is slow to respond, please be patient (Status 0xd0)
ata1: device not ready (errno=-16), forcing hardreset
ata1: BUG: prereset() requested invalid reset type
ata1: soft resetting port
ata1: reset complete
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: model number mismatch 'CF CARD 512MB' != ''
ata1.00: revalidation failed (errno=-19)
ata1.00: limiting speed to MWDMA2:PIO3
ata1: failed to recover some devices, retrying in 5 secs
ata1: soft resetting port
ata1: reset complete
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: model number mismatch 'CF CARD 512MB' != ''
ata1.00: revalidation failed (errno=-19)
ata1.00: disabled
ata1: soft resetting port
ata1: reset complete
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: ATA-0: , , max PIO0
ata1.00: 0 sectors, multi 0, CHS 0/0/0
ata1.00: applying bridge limits
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: model number mismatch '' != 'CF CARD 512MB'
ata1.00: revalidation failed (errno=-19)
ata1: failed to recover some devices, retrying in 5 secs
ata1: soft resetting port
ata1: reset complete
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: issuing IDENTIFY
ata1.00: IDENTIFY complete
ata1.00: configured for PIO0
ata1: EH complete
divide error: 0000 [#1]
SMP
CPU: 1
EIP: 0060:[<c03c7a48>] Not tainted VLI
EFLAGS: 00010046 (2.6.22-rc6 #3)
EIP is at ata_build_rw_tf+0x20e/0x275
eax: 00000000 ebx: 00000000 ecx: 00000000 edx: 00000000
esi: c2134a40 edi: 00000000 ebp: 00000000 esp: f7c4be94
ds: 007b es: 007b fs: 00d8 gs: 0000 ss: 0068
Process scsi_eh_0 (pid: 972, ti=f7c4a000 task=f7867070 task.ti=f7c4a000)
Stack: 00000000 c2134188 00000000 00000000 f7c42bc0 c2134188 c2134a30
c03c8a86
00000000 00000000 00000008 00000000 00000000 00000000 c20fb140
f7c42bc0
00000000 f7c3bb58 00000000 00000000 00000008 c2134a30 f7c42bc0
c2134188
Call Trace:
[<c03c8a86>] ata_scsi_rw_xlat+0x13d/0x1f8
[<c030b815>] scsi_done+0x0/0x16
[<c03c8c57>] ata_scsi_translate+0xf0/0x156
[<c01215e8>] lock_timer_base+0x19/0x35
[<c030b815>] scsi_done+0x0/0x16
[<c03cad64>] ata_scsi_queuecmd+0x10f/0x12c
[<c03c8949>] ata_scsi_rw_xlat+0x0/0x1f8
[<c030bb44>] scsi_dispatch_cmd+0x185/0x1c9
[<c030fdc4>] scsi_request_fn+0x20d/0x2c2
[<c021fcf8>] blk_remove_plug+0x4f/0x5b
[<c0220064>] blk_run_queue+0x37/0x63
[<c030f46f>] scsi_run_host_queues+0x10/0x22
[<c030e4bd>] scsi_error_handler+0x237/0x26f
[<c0114d80>] complete+0x39/0x48
[<c030e286>] scsi_error_handler+0x0/0x26f
[<c01292f3>] kthread+0x38/0x5d
[<c01292bb>] kthread+0x0/0x5d
[<c0103153>] kernel_thread_helper+0x7/0x10
=======================
Code: 0f 77 7b 81 7c 24 28 00 01 00 00 77 71 8b 54 24 04 89 f0 e8 f1 a2 ff
ff 85
c0 78 69 8b 54 24 04 89 f8 0f b7 8a 40 02 00 00 31 d2 <f7> f1 89 04 24 8b
44 24
04 89 d1 31 d2 0f b7 98 3e 02 00 00 8b
EIP: [<c03c7a48>] ata_build_rw_tf+0x20e/0x275 SS:ESP 0068:f7c4be94
next prev parent reply other threads:[~2007-06-27 3:58 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-18 10:02 CF flash IDE failure to attach with 2.6.20+ Andrew_hall
2007-06-18 11:26 ` Tejun Heo
2007-06-18 11:57 ` Alan Cox
2007-06-18 23:01 ` Andrew Hall
2007-06-19 5:00 ` Tejun Heo
2007-06-21 1:05 ` Andrew Hall
2007-06-21 3:02 ` Tejun Heo
2007-06-21 7:19 ` Andrew Hall
2007-06-21 14:45 ` Mark Lord
2007-06-21 15:09 ` Andrew Hall
2007-06-26 8:51 ` CF flash PATA on libata failure to attach Andrew Hall
2007-06-26 18:50 ` Mark Lord
2007-06-27 3:57 ` Andrew Hall [this message]
2007-06-27 14:08 ` Mark Lord
2007-06-27 23:49 ` Andrew Hall
2007-06-28 17:37 ` Mark Lord
2007-06-29 0:35 ` Andrew Hall
2007-06-29 1:10 ` Mark Lord
2007-06-29 1:36 ` Tejun Heo
2007-06-29 2:26 ` Mark Lord
2007-06-29 2:15 ` Andrew Hall
2007-06-29 2:28 ` Mark Lord
2007-06-29 3:24 ` Andrew Hall
2007-06-29 7:34 ` Andrew Hall
2007-06-29 10:17 ` Alan Cox
2007-07-02 10:58 ` Tejun Heo
2007-07-03 6:13 ` Albert Lee
2007-06-29 10:06 ` Alan Cox
2007-06-25 9:05 ` CF flash IDE failure to attach with 2.6.20+ Andrew Hall
2007-06-18 23:23 ` Andrew Hall
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=4681e04b.22b38c0a.78ec.6f76@mx.google.com \
--to=andrew.a.hall@gmail.com \
--cc=liml@rtr.ca \
--cc=linux-ide@vger.kernel.org \
--cc=robert.de.rooy@gmail.com \
/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).