linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Updated libata PATA patch
@ 2006-05-09 17:44 Alan Cox
  2006-05-10  1:48 ` Kevin Radloff
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Alan Cox @ 2006-05-09 17:44 UTC (permalink / raw)
  To: linux-kernel

- Re-enable per device speed setting
- Fix VIA cable detect bug  (reporter: Mathieu Castet)
- Fix AMD cable detect bug  (reporter: Sangoi Leonard)
- Fix CS5535 build (reporter: Meelis Roos)
- Trap 0 IRQ case
- Fix IRQ allocation for pata_pcmcia (reporter: Kevin Radloff)

http://zeniv.linux.org.uk/~alan/IDE



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-09 17:44 Updated libata PATA patch Alan Cox
@ 2006-05-10  1:48 ` Kevin Radloff
  2006-05-10 14:09   ` Alan Cox
  2006-05-11 19:06 ` Matthieu CASTET
  2006-05-12 23:04 ` Guennadi Liakhovetski
  2 siblings, 1 reply; 12+ messages in thread
From: Kevin Radloff @ 2006-05-10  1:48 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

On 5/9/06, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> - Re-enable per device speed setting
> - Fix VIA cable detect bug  (reporter: Mathieu Castet)
> - Fix AMD cable detect bug  (reporter: Sangoi Leonard)
> - Fix CS5535 build (reporter: Meelis Roos)
> - Trap 0 IRQ case
> - Fix IRQ allocation for pata_pcmcia (reporter: Kevin Radloff)

Slightly different this time, but still another oops ;)

pccard: PCMCIA card inserted into slot 1
cs: memory probe 0x50000000-0x53ffffff: excluding 0x50000000-0x53ffffff
cs: memory probe 0xd0200000-0xd02fffff: excluding 0xd0200000-0xd021ffff
pcmcia: registering new device pcmcia1.0
ata3: PATA max PIO0 cmd 0x3100 ctl 0x310E bmdma 0x0 irq 11
setup_irq: irq handler mismatch
 <b012a6ae> setup_irq+0xfb/0x10e   <b02414b3> ata_interrupt+0x0/0x13d
 <b012a72d> request_irq+0x6c/0x88   <b0240ca5> ata_device_add+0x2f8/0x599
 <f01bb506> pcmcia_init_one+0x4b4/0x512 [pata_pcmcia]   <f01a417e>
pcmcia_device_probe+0x7b/0x109 [pcmcia]
 <b023350e> __driver_attach+0x0/0x59   <b0233471> driver_probe_device+0x42/0x8b
 <b0233544> __driver_attach+0x36/0x59   <b0232f9c> bus_for_each_dev+0x33/0x55
 <b02333db> driver_attach+0x11/0x13   <b023350e> __driver_attach+0x0/0x59
 <b0232cc6> bus_add_driver+0x64/0xfa   <f01a3d1f>
pcmcia_register_driver+0x4a/0xab [pcmcia]
 <b0128815> sys_init_module+0x1221/0x13ae   <b0102aeb> syscall_call+0x7/0xb
BUG: unable to handle kernel NULL pointer dereference at virtual
address 00000000
 printing eip:
b0233b54
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: pata_pcmcia snd_intel8x0 snd_intel8x0m joydev
snd_ac97_codec snd_ac97_bus pcmcia firmware_class sg snd_pcm_oss
snd_mixer_oss snd_pcm ohci1394 ehci_hcd uhci_hcd snd_timer ieee1394
8139too mii usbcore psmouse sr_mod snd soundcore snd_page_alloc evdev
yenta_socket rsrc_nonstatic pcmcia_core crc32 cdrom
CPU:    0
EIP:    0060:[<b0233b54>]    Not tainted VLI
EFLAGS: 00010206   (2.6.17-rc3-ck3-ide2-fu-mw #1)
EIP is at make_class_name+0x29/0x88
eax: 00000000   ebx: ffffffff   ecx: ffffffff   edx: 00000009
esi: b02efb2c   edi: 00000000   ebp: 00000000   esp: b18fbb9c
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 991, threadinfo=b18fb000 task=eef42540)
Stack: <0>eea7f9f8 eea7f9f8 b02efb2c b02efb34 b02efac0 b0233d2d
00000000 00000000
       eea7f9f8 00000246 eea7f800 eea7f828 b0233dc8 eea7f8d0 b02376b4 eea7fa90
       eedf84c0 00003100 0000310e b023e697 00000000 b0240ecf b18fbc4c eedf84c0
Call Trace:
 <b0233d2d> class_device_del+0x6f/0x102   <b0233dc8>
class_device_unregister+0x8/0x10
 <b02376b4> scsi_remove_host+0xe5/0xf0   <b023e697> ata_host_remove+0xe/0x18
 <b0240ecf> ata_device_add+0x522/0x599   <f01bb506>
pcmcia_init_one+0x4b4/0x512 [pata_pcmcia]
 <f01a417e> pcmcia_device_probe+0x7b/0x109 [pcmcia]   <b023350e>
__driver_attach+0x0/0x59
 <b0233471> driver_probe_device+0x42/0x8b   <b0233544> __driver_attach+0x36/0x59
 <b0232f9c> bus_for_each_dev+0x33/0x55   <b02333db> driver_attach+0x11/0x13
 <b023350e> __driver_attach+0x0/0x59   <b0232cc6> bus_add_driver+0x64/0xfa
 <f01a3d1f> pcmcia_register_driver+0x4a/0xab [pcmcia]   <b0128815>
sys_init_module+0x1221/0x13ae
 <b0102aeb> syscall_call+0x7/0xb
Code: d0 c3 55 31 ed 57 56 53 83 cb ff 83 ec 04 89 d9 89 04 24 8b 40
44 8b 38 89 e8 f2 ae f7 d1 49 8b 04 24 89 ca 89 d9 8b 78 08 89 e8 <f2>
ae f7 d1 49 8d 44 0a 02 ba d0 00 00 00 e8 b9 d9 f0 ff ba f4
EIP: [<b0233b54>] make_class_name+0x29/0x88 SS:ESP 0068:b18fbb9c

--
Kevin 'radsaq' Radloff
radsaq@gmail.com
http://thesaq.com/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-10  1:48 ` Kevin Radloff
@ 2006-05-10 14:09   ` Alan Cox
  2006-05-10 16:05     ` Kevin Radloff
  2006-05-12  2:34     ` John Stoffel
  0 siblings, 2 replies; 12+ messages in thread
From: Alan Cox @ 2006-05-10 14:09 UTC (permalink / raw)
  To: Kevin Radloff; +Cc: linux-kernel

On Maw, 2006-05-09 at 21:48 -0400, Kevin Radloff wrote:
> ata3: PATA max PIO0 cmd 0x3100 ctl 0x310E bmdma 0x0 irq 11
> setup_irq: irq handler mismatch

Ok so we got an interrupt this time and then when we asked for it got
told "no". That still shouldn't crash but there are some lurking
problems when ata_device_add fails.

More interesting is how it can occur.

We asked for an IRQ that was "exclusive". We got given IRQ 11 which was
shared. A look at the pcmcia code suggests the new drivers/pcmcia code
is broken here: It may fall back to using an interrupt line that is
shared even when told not to.

What occurs if you change

	ae.irq_flags = 0;

to 

	ae.irq_flags = SA_SHIRQ ?

Alan


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-10 14:09   ` Alan Cox
@ 2006-05-10 16:05     ` Kevin Radloff
  2006-05-10 16:39       ` Alan Cox
  2006-05-12  2:34     ` John Stoffel
  1 sibling, 1 reply; 12+ messages in thread
From: Kevin Radloff @ 2006-05-10 16:05 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

On 5/10/06, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> On Maw, 2006-05-09 at 21:48 -0400, Kevin Radloff wrote:
> > ata3: PATA max PIO0 cmd 0x3100 ctl 0x310E bmdma 0x0 irq 11
> > setup_irq: irq handler mismatch
>
> Ok so we got an interrupt this time and then when we asked for it got
> told "no". That still shouldn't crash but there are some lurking
> problems when ata_device_add fails.
>
> More interesting is how it can occur.
>
> We asked for an IRQ that was "exclusive". We got given IRQ 11 which was
> shared. A look at the pcmcia code suggests the new drivers/pcmcia code
> is broken here: It may fall back to using an interrupt line that is
> shared even when told not to.
>
> What occurs if you change
>
>         ae.irq_flags = 0;
>
> to
>
>         ae.irq_flags = SA_SHIRQ ?

Another new and exciting oops :)

pccard: PCMCIA card inserted into slot 1
cs: memory probe 0x0c0000-0x0fffff: excluding 0xc0000-0xcffff 0xdc000-0xfffff
cs: memory probe 0x50000000-0x53ffffff: excluding 0x50000000-0x53ffffff
cs: memory probe 0x60000000-0x60ffffff: clean.
cs: memory probe 0xa0000000-0xa0ffffff: clean.
cs: memory probe 0xd0200000-0xd02fffff: excluding 0xd0200000-0xd021ffff
pcmcia: registering new device pcmcia1.0
ata3: PATA max PIO0 cmd 0x3100 ctl 0x310E bmdma 0x0 irq 11
ata3: dev 0 cfg 49:0200 82:0000 83:0000 84:0000 85:0000 86:0000 87:0000 88:0000
ata3: dev 0 ATA-10, max PIO4, 2001888 sectors: LBA
ata3: dev 0 configured for PIO0
scsi2 : pata_pcmcia
  Vendor: ATA       Model: SanDisk SDCFH-10  Rev: HDX
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write through
SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write through
 sdb:<1>BUG: unable to handle kernel NULL pointer dereference at
virtual address 00000000
 printing eip:
00000000
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: pata_pcmcia rfcomm l2cap bluetooth appletalk psnap
llc ipt_LOG xt_limit xt_state iptable_filter ip_conntrack i915 drm
fuj02b1_acpi snd_intel8x0 snd_intel8x0m snd_ac97_codec snd_ac97_bus
snd_pcm_oss snd_mixer_oss snd_pcm snd_timer ehci_hcd pcmcia
firmware_class uhci_hcd joydev sg 8139too mii snd soundcore usbcore
sr_mod cdrom crc32 ohci1394 ieee1394 snd_page_alloc yenta_socket
rsrc_nonstatic pcmcia_core evdev psmouse
CPU:    0
EIP:    0060:[<00000000>]    Not tainted VLI
EFLAGS: 00010046   (2.6.17-rc3-ck3-ide2-fu-mw #1)
EIP is at _stext+0x4feffde0/0x3c
eax: e6c98b88   ebx: e6c98a90   ecx: 00000016   edx: f02b8fe0
esi: e6c98b88   edi: e6c98b98   ebp: e6c98b88   esp: e5954678
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 3100, threadinfo=e5954000 task=eefd6030)
Stack: <0>b02411c5 00000000 ef620e50 b1926b00 b023ee3e e6c98a90
e6c98a90 ef620e40
       b02367f7 ef620e40 b0242f1d e6c98a90 e6c98b08 e5ed4800 b1926b00 e6c98a90
       b0243726 b02367f7 b0242f1d b02367f7 00000287 b1926b00 e6c98800 b191e02c
Call Trace:
 <b02411c5> ata_qc_issue_prot+0x5e/0x115   <b023ee3e> ata_qc_issue+0x31e/0x378
 <b02367f7> scsi_done+0x0/0x16   <b0242f1d> ata_scsi_rw_xlat+0x0/0x2b5
 <b0243726> ata_scsi_queuecmd+0x181/0x197   <b02367f7> scsi_done+0x0/0x16
 <b0242f1d> ata_scsi_rw_xlat+0x0/0x2b5   <b02367f7> scsi_done+0x0/0x16
 <b0236eb7> scsi_dispatch_cmd+0x178/0x1c8   <b023af8a>
scsi_request_fn+0x211/0x2b7
 <b01e8365> __generic_unplug_device+0x1d/0x1f   <b01e618e> elv_insert+0x97/0x130
 <b01e9647> __make_request+0x2e9/0x32c   <b01e799b>
generic_make_request+0x12d/0x13d
 <b012f661> __alloc_pages+0x4f/0x25c   <b012dcbd> mempool_alloc+0x1f/0xc6
 <b01e8f26> submit_bio+0xa3/0xa9   <b0147dcf> bio_alloc_bioset+0x9b/0xf3
 <b0145253> submit_bh+0xc5/0xe0   <b01476d2> block_read_full_page+0x22b/0x23a
 <b014a8b0> blkdev_get_block+0x0/0x33   <b012b679> add_to_page_cache+0x33/0x89
 <b012b6dc> add_to_page_cache_lru+0xd/0x20   <b012d3c2>
read_cache_page+0x7b/0x116
 <b0149c8f> blkdev_readpage+0x0/0xc   <b016f43a> msdos_partition+0x0/0x422
 <b016f293> read_dev_sector+0x22/0x78   <b016f480> msdos_partition+0x46/0x422
 <b01f1d8a> snprintf+0x1c/0x1f   <b011433c> printk+0x14/0x18
 <b016f43a> msdos_partition+0x0/0x422   <b016f1d7> rescan_partitions+0xe7/0x15d
 <b014a43d> do_open+0x200/0x2cb   <b014a55c> blkdev_get+0x54/0x5f
 <b016f3e4> register_disk+0xfb/0x14b   <b01eaa2a> add_disk+0x2b/0x36
 <b01ea3f4> exact_match+0x0/0x7   <b01ea8e9> exact_lock+0x0/0xd
 <b02462b1> sd_probe+0x2cb/0x32e   <b0233471> driver_probe_device+0x42/0x8b
 <b02334ba> __device_attach+0x0/0x5   <b0232ed7> bus_for_each_drv+0x32/0x58
 <b02334ff> device_attach+0x40/0x4f   <b02334ba> __device_attach+0x0/0x5
 <b0232dff> bus_add_device+0x27/0xcd   <b0232403> device_add+0xc4/0x122
 <b023cef2> scsi_sysfs_add_sdev+0x2a/0x1ce   <b011433c> printk+0x14/0x18
 <b023b9c1> scsi_probe_and_add_lun+0x60f/0x6f7   <b023bdf2>
scsi_alloc_target+0x20f/0x316
 <b023bfe5> __scsi_scan_target+0x84/0x4cc   <b01413a8>
cache_alloc_refill+0x2bb/0x433
 <b0170746> sysfs_new_dirent+0x19/0x5f   <b0170836> sysfs_make_dirent+0x11/0x66
 <b023c62e> scsi_scan_target+0x5f/0x73   <b02422c0> ata_scsi_scan_host+0x33/0x42
 <b0240e97> ata_device_add+0x4ea/0x599   <f02b7506>
pcmcia_init_one+0x4b4/0x512 [pata_pcmcia]
 <f017717e> pcmcia_device_probe+0x7b/0x109 [pcmcia]   <b023350e>
__driver_attach+0x0/0x59
 <b0233471> driver_probe_device+0x42/0x8b   <b0233544> __driver_attach+0x36/0x59
 <b0232f9c> bus_for_each_dev+0x33/0x55   <b02333db> driver_attach+0x11/0x13
 <b023350e> __driver_attach+0x0/0x59   <b0232cc6> bus_add_driver+0x64/0xfa
 <f0176d1f> pcmcia_register_driver+0x4a/0xab [pcmcia]   <b0128815>
sys_init_module+0x1221/0x13ae
 <b0102aeb> syscall_call+0x7/0xb
Code:  Bad EIP value.
EIP: [<00000000>] _stext+0x4feffde0/0x3c SS:ESP 0068:e5954678
 <6>note: modprobe[3100] exited with preempt_count 1

--
Kevin 'radsaq' Radloff
radsaq@gmail.com
http://thesaq.com/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-10 16:39       ` Alan Cox
@ 2006-05-10 16:39         ` Kevin Radloff
  2006-05-15 22:08           ` Alan Cox
  0 siblings, 1 reply; 12+ messages in thread
From: Kevin Radloff @ 2006-05-10 16:39 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

On 5/10/06, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> On Mer, 2006-05-10 at 12:05 -0400, Kevin Radloff wrote:
> > >         ae.irq_flags = SA_SHIRQ ?
> >
> > Another new and exciting oops :)
>
> Yay, so that one was the PCMCIA code being broken.
>
> > pcmcia: registering new device pcmcia1.0
> > ata3: PATA max PIO0 cmd 0x3100 ctl 0x310E bmdma 0x0 irq 11
> > ata3: dev 0 cfg 49:0200 82:0000 83:0000 84:0000 85:0000 86:0000 87:0000 88:0000
> > ata3: dev 0 ATA-10, max PIO4, 2001888 sectors: LBA
> > ata3: dev 0 configured for PIO0
>
> This is all good. Its a PIO0 device (PCMCIA is ISA cycles which are PIO0
> cycles)
>
> > scsi2 : pata_pcmcia
> >   Vendor: ATA       Model: SanDisk SDCFH-10  Rev: HDX
> >   Type:   Direct-Access                      ANSI SCSI revision: 05
> > SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB)
>
> The disk was found and the indentify data came out correctly.
>
> > sdb: Write Protect is off
> > sdb: Mode Sense: 00 3a 00 00
> > SCSI device sdb: drive cache: write through
> > SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB)
> > sdb: Write Protect is off
> > sdb: Mode Sense: 00 3a 00 00
> > SCSI device sdb: drive cache: write through
>
> The drive was sized, the cache checked properly.
>
> >  sdb:<1>BUG: unable to handle kernel NULL pointer dereference at
> > virtual address 00000000
>
> Awww.. how to ruin a good day 8)
>
> At this point its trying to read the partition table. It has translated
> the command into a SCSI command block and into ATA,. It has queued it,
> and it has just set out to issue it when it went boom
>
> I'll do some more digging, but putting printks into ata_qc_issue_prot to
> see where it explodes is the next step I suspect.

Ah, I see.. I'll be waiting. :)

--
Kevin 'radsaq' Radloff
radsaq@gmail.com
http://thesaq.com/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-10 16:05     ` Kevin Radloff
@ 2006-05-10 16:39       ` Alan Cox
  2006-05-10 16:39         ` Kevin Radloff
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Cox @ 2006-05-10 16:39 UTC (permalink / raw)
  To: Kevin Radloff; +Cc: linux-kernel

On Mer, 2006-05-10 at 12:05 -0400, Kevin Radloff wrote:
> >         ae.irq_flags = SA_SHIRQ ?
> 
> Another new and exciting oops :)

Yay, so that one was the PCMCIA code being broken.

> pcmcia: registering new device pcmcia1.0
> ata3: PATA max PIO0 cmd 0x3100 ctl 0x310E bmdma 0x0 irq 11
> ata3: dev 0 cfg 49:0200 82:0000 83:0000 84:0000 85:0000 86:0000 87:0000 88:0000
> ata3: dev 0 ATA-10, max PIO4, 2001888 sectors: LBA
> ata3: dev 0 configured for PIO0

This is all good. Its a PIO0 device (PCMCIA is ISA cycles which are PIO0
cycles)

> scsi2 : pata_pcmcia
>   Vendor: ATA       Model: SanDisk SDCFH-10  Rev: HDX
>   Type:   Direct-Access                      ANSI SCSI revision: 05
> SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB)

The disk was found and the indentify data came out correctly.

> sdb: Write Protect is off
> sdb: Mode Sense: 00 3a 00 00
> SCSI device sdb: drive cache: write through
> SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB)
> sdb: Write Protect is off
> sdb: Mode Sense: 00 3a 00 00
> SCSI device sdb: drive cache: write through

The drive was sized, the cache checked properly.

>  sdb:<1>BUG: unable to handle kernel NULL pointer dereference at
> virtual address 00000000

Awww.. how to ruin a good day 8)

At this point its trying to read the partition table. It has translated
the command into a SCSI command block and into ATA,. It has queued it,
and it has just set out to issue it when it went boom

I'll do some more digging, but putting printks into ata_qc_issue_prot to
see where it explodes is the next step I suspect.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-09 17:44 Updated libata PATA patch Alan Cox
  2006-05-10  1:48 ` Kevin Radloff
@ 2006-05-11 19:06 ` Matthieu CASTET
  2006-05-12 23:04 ` Guennadi Liakhovetski
  2 siblings, 0 replies; 12+ messages in thread
From: Matthieu CASTET @ 2006-05-11 19:06 UTC (permalink / raw)
  To: linux-kernel

Hi,

Le Tue, 09 May 2006 18:44:36 +0100, Alan Cox a écrit :

> - Re-enable per device speed setting
> - Fix VIA cable detect bug  (reporter: Mathieu Castet)
> - Fix AMD cable detect bug  (reporter: Sangoi Leonard)
> - Fix CS5535 build (reporter: Meelis Roos)
> - Trap 0 IRQ case
> - Fix IRQ allocation for pata_pcmcia (reporter: Kevin Radloff)
> 
> http://zeniv.linux.org.uk/~alan/IDE
Another bug on pata_via :

in via_do_set_mode "mode" argument is never used and ata_timing_compute
always use adev->pio_mode and never adev->dma_mode.
That should explain why viaideinfo report broken timing.

Matthieu

PS : matthieu have 2 't'


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-10 14:09   ` Alan Cox
  2006-05-10 16:05     ` Kevin Radloff
@ 2006-05-12  2:34     ` John Stoffel
  2006-05-15  2:46       ` John Stoffel
  1 sibling, 1 reply; 12+ messages in thread
From: John Stoffel @ 2006-05-12  2:34 UTC (permalink / raw)
  To: Alan Cox; +Cc: Kevin Radloff, linux-kernel


Alan,

I just tried to use the IDE2 patches to 2.6.17-rc3 tonight.  I've got
an old Dell Precision 610, Dual 550Mhz Xeon, 768mb of RAM.  My root
disk is SCSI, with hda a Samsung DVD/ROM, CDRW drive.  I've got an
HPT302 controller with a pair of 120gb IDE disks.  I've also got an
addon PCI USB/Firewire Card, an old Cyclom-Y ISA serial port card,
Matrox G450 AGP card, builtin Adaptec SCSI cards, DLT 7000 tape
drive.  Probably other stuff as well.

Here's the lspci output:

> lspci
0000:00:00.0 Host bridge: Intel Corporation 440GX - 82443GX Host bridge
0000:00:01.0 PCI bridge: Intel Corporation 440GX - 82443GX AGP bridge
0000:00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
0000:00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
0000:00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
0000:00:0d.0 RAID bus controller: Triones Technologies, Inc. HPT302 (rev 01)
0000:00:0e.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
0000:00:11.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 24)
0000:00:13.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
0000:01:00.0 VGA compatible controller: Matrox Graphics, Inc. G400/G450 (rev 82)
0000:02:06.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 13)
0000:02:0a.0 SCSI storage controller: Adaptec AHA-2940U2/U2W / 7890/7891
0000:02:0e.0 SCSI storage controller: Adaptec AIC-7880U (rev 01)
0000:03:08.0 USB Controller: NEC Corporation USB (rev 41)
0000:03:08.1 USB Controller: NEC Corporation USB (rev 41)
0000:03:08.2 USB Controller: NEC Corporation USB 2.0 (rev 02)
0000:03:0b.0 FireWire (IEEE 1394): Texas Instruments TSB12LV26 IEEE-1394 Controller (Link)



n> cat /proc/interrupts 
           CPU0       CPU1       
  0:     237231     227203    IO-APIC-edge  timer
  1:       1213       2640    IO-APIC-edge  i8042
  8:          3          1    IO-APIC-edge  rtc
  9:          0          0   IO-APIC-level  acpi
 11:       2265       2258    IO-APIC-edge  Cyclom-Y
 12:      10217       2344    IO-APIC-edge  i8042
 14:       7934       7911    IO-APIC-edge  ide0
 16:     395587     368729   IO-APIC-level  ide2, ide3, ehci_hcd:usb1, mga@pci:0000:01:00.0
 17:       3559          1   IO-APIC-level  Ensoniq AudioPCI, ohci1394, eth0
 18:       7146       4967   IO-APIC-level  aic7xxx, aic7xxx, ohci_hcd:usb2
 19:     174376     184174   IO-APIC-level  uhci_hcd:usb3, ohci_hcd:usb4
NMI:          0          0 
LOC:     464327     464326 
ERR:          0
MIS:          0


Booting up it was *slow*... slower than normal.  I got the following
oops, copied down from a photo I took, since it didn't end up getting
written to disk.  

.
.
.
irq 16: nobody cared (try booting with the "irqpoll" option)
 <c013d034> __report_bad_irq_0x24/0x90  <c013d13f> note_interrupt+0x9f/0x260
 <c031ab78> usb_hcd_irq+0x28/0x60 <c013c993> handle_IRQ_event+0x33/0x70
 <c013ca64> __do_IRQ+0xf4/0x100  <c0105909> do_IRQ+0x19/0x30
 <c0103962> common_interrupt+0x1a/0x20  <c0101b80> default_idle+0x0/0x60
 <c010bac> default_idle+0x2c/0x60  <c0101c48> cpu_idle+0x68/0x90
 <c0542729> start_kernel+0x289/0x400 <c0542230> unknown_bootoption+0x0/0x270
handlers:
[<c0302d20>] (ata_interrupt+0x0/0x150)
[c031ab50>] (usb_hcd_irq+0x0/0x60)
Disabling IRQ #16


Please let me know if there's any more information I can provide.
I'll try to get a serial cable on there so I can capture the boot log
better to another host, but no sure when I'll be able to do this.

John


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-09 17:44 Updated libata PATA patch Alan Cox
  2006-05-10  1:48 ` Kevin Radloff
  2006-05-11 19:06 ` Matthieu CASTET
@ 2006-05-12 23:04 ` Guennadi Liakhovetski
  2 siblings, 0 replies; 12+ messages in thread
From: Guennadi Liakhovetski @ 2006-05-12 23:04 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

On Tue, 9 May 2006, Alan Cox wrote:

> - Re-enable per device speed setting
> - Fix VIA cable detect bug  (reporter: Mathieu Castet)
> - Fix AMD cable detect bug  (reporter: Sangoi Leonard)
> - Fix CS5535 build (reporter: Meelis Roos)
> - Trap 0 IRQ case
> - Fix IRQ allocation for pata_pcmcia (reporter: Kevin Radloff)
> 
> http://zeniv.linux.org.uk/~alan/IDE

Just a little thank-you  - just booted with your patch a ppc machine with 
a "IDE interface: Silicon Image, Inc. (formerly CMD Technology Inc) 
PCI0680 Ultra ATA-133 Host Controller (rev 02)" controller, kernel 
2.6.17-rc3, your patch patch-2.6.17-rc3-ide2. An extract from dmesg:

sil680: BA5_EN = 1 clock = 00
sil680: BA5_EN = 1 clock = 10
sil680: 133MHz clock.
ata1: PATA max UDMA/133 cmd 0xBFFEF8 ctl 0xBFFEF6 bmdma 0xBFFED0 irq 17
ata2: PATA max UDMA/133 cmd 0xBFFEE8 ctl 0xBFFEE6 bmdma 0xBFFED8 irq 17
ata1: dev 0 ATA-6, max UDMA/100, 40020624 sectors: LBA
ata1: dev 0 configured for UDMA/100
scsi0 : pata_sil680
scsi1 : pata_sil680
  Vendor: ATA       Model: Maxtor 2B020H1    Rev: WAH2
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sda: 40020624 512-byte hdwr sectors (20491 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
SCSI device sda: 40020624 512-byte hdwr sectors (20491 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0

Will see how well it survives:-)

Thanks
Guennadi
---
Guennadi Liakhovetski

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-12  2:34     ` John Stoffel
@ 2006-05-15  2:46       ` John Stoffel
  0 siblings, 0 replies; 12+ messages in thread
From: John Stoffel @ 2006-05-15  2:46 UTC (permalink / raw)
  To: John Stoffel; +Cc: Alan Cox, Kevin Radloff, linux-kernel


John> Alan,

John> I just tried to use the IDE2 patches to 2.6.17-rc3 tonight.
John> I've got an old Dell Precision 610, Dual 550Mhz Xeon, 768mb of
John> RAM.  My root disk is SCSI, with hda a Samsung DVD/ROM, CDRW
John> drive.  I've got an HPT302 controller with a pair of 120gb IDE
John> disks.  I've also got an addon PCI USB/Firewire Card, an old
John> Cyclom-Y ISA serial port card, Matrox G450 AGP card, builtin
John> Adaptec SCSI cards, DLT 7000 tape drive.  Probably other stuff
John> as well.

I've got more details now, I managed to setup a serial console on
another machine and captured the bootup process, along with the
various timeouts and such I get on bootup.  I couldn't actually get
the system to come up enough so I could login, and when I was done
rebooting, I had to re-sync my RAID1 array, so I'm a little hesitant
to push it.   Even with backups.

Here's the bootup log, edited to remove some Device Mapper debug messages.
---------------------------------------------------------------------------

Linux version 2.6.17-rc3-IDE2 (john@jfsnew) (gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)) #8 SMP PREEMPT Thu May 11 21:51:51 EDT 2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000002fffe000 (usable)
 BIOS-e820: 000000002fffe000 - 0000000030000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
 BIOS-e820: 00000000ffe00000 - 0000000100000000 (reserved)
early console enabled
767MB LOWMEM available.
found SMP MP-table at 000fe710
DMI 2.2 present.
ACPI: PM-Timer IO Port: 0x808
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 6:7 APIC version 17
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
Processor #1 6:7 APIC version 17
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x4])
ACPI: NMI not connected to LINT 1!
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 40000000 (gap: 30000000:cec00000)
Built 1 zonelists
Kernel command line: root=/dev/sda2 ro console=tty0 console=ttyS0,9600n8 earlyprintk=serial
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 547.232 MHz processor.
Using pmtmr for high-res timesource
disabling early console
Linux version 2.6.17-rc3-IDE2 (john@jfsnew) (gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)) #8 SMP PREEMPT Thu May 11 21:51:51 EDT 2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000002fffe000 (usable)
 BIOS-e820: 000000002fffe000 - 0000000030000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
 BIOS-e820: 00000000ffe00000 - 0000000100000000 (reserved)
early console enabled
767MB LOWMEM available.
found SMP MP-table at 000fe710
DMI 2.2 present.
ACPI: PM-Timer IO Port: 0x808
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 6:7 APIC version 17
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
Processor #1 6:7 APIC version 17
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x4])
ACPI: NMI not connected to LINT 1!
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 40000000 (gap: 30000000:cec00000)
Built 1 zonelists
Kernel command line: root=/dev/sda2 ro console=tty0 console=ttyS0,9600n8 earlyprintk=serial
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 547.232 MHz processor.
Using pmtmr for high-res timesource
disabling early console
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 773968k/786424k available (2989k kernel code, 11936k reserved, 1340k data, 240k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 1095.57 BogoMIPS (lpj=2191152)
Mount-cache hash table entries: 512
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Checking 'hlt' instruction... OK.
Freeing SMP alternatives: 16k freed
CPU0: Intel Pentium III (Katmai) stepping 03
Booting processor 1/1 eip 2000
Initializing CPU#1
Calibrating delay using timer specific routine.. 1094.49 BogoMIPS (lpj=2188993)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
CPU1: Intel Pentium III (Katmai) stepping 03
Total of 2 processors activated (2190.07 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
checking TSC synchronization across 2 CPUs: passed.
Brought up 2 CPUs
migration_cost=4000
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfca1e, last bus=3
Setting up standard PCI resources
ACPI: Subsystem revision 20060127
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
ACPI: Assume root bridge [\_SB_.PCI0] bus is 0
PCI: Ignoring BAR0-3 of IDE controller 0000:00:07.1
PCI quirk: region 0800-083f claimed by PIIX4 ACPI
PCI quirk: region 0850-085f claimed by PIIX4 SMB
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 *10 11 12 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 6 7 9 10 11 12 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
PnPBIOS: Disabled by ACPI PNP
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:0c: ioport range 0x800-0x85f could not be reserved
PCI: Bridge: 0000:00:01.0
  IO window: disabled.
  MEM window: fc000000-fdffffff
  PREFETCH window: f2000000-f5ffffff
PCI: Bridge: 0000:02:06.0
  IO window: disabled.
  MEM window: fa000000-fbffffff
  PREFETCH window: f1000000-f1ffffff
PCI: Bridge: 0000:00:13.0
  IO window: e000-efff
  MEM window: f8000000-fbffffff
  PREFETCH window: f0000000-f1ffffff
* Found PM-Timer Bug on this chipset. Due to workarounds for a bug,
* this time source is slow.  Consider trying other time sources (clock=)
IA-32 Microcode Update Driver: v1.14 <tigran@veritas.com>
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
ACPI: Power Button (FF) [PWRF]
ibm_acpi: ec object not found
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Cyclades driver 2.3.2.20 2004/02/25 18:14:16
        built May 10 2006 09:47:22
Cyclom-Y/ISA #1: 0xc00de000-0xc00dffff, IRQ11, 8 channels starting from port 0.
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel 440GX Chipset.
agpgart: AGP aperture is 64M @ 0xec000000
[drm] Initialized drm 1.0.1 20051102
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[drm] Initialized mga 3.2.1 20051102 on minor 0
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
loop: loaded (max 8 devices)
ACPI: PCI Interrupt 0000:00:11.0[A] -> GSI 17 (level, low) -> IRQ 17
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:00:11.0: 3Com PCI 3c905B Cyclone 100baseTx at f0802000.
ACPI: PCI Interrupt 0000:02:0a.0[A] -> GSI 18 (level, low) -> IRQ 18
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
        <Adaptec aic7890/91 Ultra2 SCSI adapter>
        aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs

  Vendor: COMPAQ    Model: HC01841729        Rev: 3208
  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 32
 target0:0:0: Beginning Domain Validation
 target0:0:0: wide asynchronous
 target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 15)
 target0:0:0: Domain Validation skipping write tests
 target0:0:0: Ending Domain Validation
  Vendor: COMPAQ    Model: BD018222CA        Rev: B016
  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:1:0: Tagged Queuing enabled.  Depth 32
 target0:0:1: Beginning Domain Validation
 target0:0:1: wide asynchronous
 target0:0:1: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 63)
 target0:0:1: Domain Validation skipping write tests
 target0:0:1: Ending Domain Validation
ACPI: PCI Interrupt 0000:02:0e.0[A] -> GSI 18 (level, low) -> IRQ 18
scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
        <Adaptec aic7880 Ultra SCSI adapter>
        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

  Vendor: SUN       Model: DLT7000           Rev: 245F
  Type:   Sequential-Access                  ANSI SCSI revision: 02
 target1:0:5: Beginning Domain Validation
 target1:0:5: wide asynchronous
 target1:0:5: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
 target1:0:5: Domain Validation skipping write tests
 target1:0:5: Ending Domain Validation
ata1: PATA max UDMA/33 cmd 0x1F0 ctl 0x3F6 bmdma 0xFFA0 irq 14
ata1: dev 0 ATAPI, max UDMA/33
ata1: dev 0 configured for UDMA/33
scsi2 : ata_piix
  Vendor: SAMSUNG   Model: CDRW/DVD SM-352B  Rev: T806
  Type:   CD-ROM                             ANSI SCSI revision: 05
ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xFFA8 irq 15
ata2: port disabled. ignoring.
scsi3 : ata_piix
pata_hpt37x: BIOS has not set timing clocks.
hpt37x: HPT302: Bus clock 33MHz.
ACPI: PCI Interrupt 0000:00:0d.0[A] -> GSI 16 (level, low) -> IRQ 16
ata3: PATA max UDMA/133 cmd 0xDCD8 ctl 0xDCD2 bmdma 0xD800 irq 16
ata4: PATA max UDMA/133 cmd 0xDCC0 ctl 0xDCBA bmdma 0xD808 irq 16
ata3: dev 0 ATA-5, max UDMA/100, 234441648 sectors: LBA
Find mode for 12 reports C829C62
Find mode for DMA 69 reports 1C6DDC62
ata3: dev 0 configured for UDMA/100
scsi4 : hpt37x
ata4: dev 0 ATA-6, max UDMA/100, 234441648 sectors: LBA48
Find mode for 12 reports C829C62
Find mode for DMA 69 reports 1C6DDC62
ata4: dev 0 configured for UDMA/100
scsi5 : hpt37x
  Vendor: ATA       Model: WDC WD1200JB-00C  Rev: 17.0
  Type:   Direct-Access                      ANSI SCSI revision: 05
  Vendor: ATA       Model: WDC WD1200JB-00E  Rev: 15.0
  Type:   Direct-Access                      ANSI SCSI revision: 05
st: Version 20050830, fixed bufsize 32768, s/g segs 256
st 1:0:5:0: Attached scsi tape st0<4>st0: try direct i/o: yes (alignment 512 B)
 target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 15)
SCSI device sda: 35566000 512-byte hdwr sectors (18210 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA
SCSI device sda: 35566000 512-byte hdwr sectors (18210 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
sd 0:0:0:0: Attached scsi disk sda
 target0:0:1: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 63)
SCSI device sdb: 35565080 512-byte hdwr sectors (18209 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write through w/ FUA
SCSI device sdb: 35565080 512-byte hdwr sectors (18209 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write through w/ FUA
 sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 >
sd 0:0:1:0: Attached scsi disk sdb
SCSI device sdc: 234441648 512-byte hdwr sectors (120034 MB)
sdc: Write Protect is off
SCSI device sdc: drive cache: write back
SCSI device sdc: 234441648 512-byte hdwr sectors (120034 MB)
sdc: Write Protect is off
SCSI device sdc: drive cache: write back
 sdc: sdc1
sd 4:0:0:0: Attached scsi disk sdc
SCSI device sdd: 234441648 512-byte hdwr sectors (120034 MB)
sdd: Write Protect is off
SCSI device sdd: drive cache: write back
SCSI device sdd: 234441648 512-byte hdwr sectors (120034 MB)
sdd: Write Protect is off
SCSI device sdd: drive cache: write back
 sdd: sdd1
sd 5:0:0:0: Attached scsi disk sdd
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:1:0: Attached scsi generic sg1 type 0
st 1:0:5:0: Attached scsi generic sg2 type 1
 2:0:0:0: Attached scsi generic sg3 type 5
sd 4:0:0:0: Attached scsi generic sg4 type 0
sd 5:0:0:0: Attached scsi generic sg5 type 0
usbmon: debugfs is not available
ACPI: PCI Interrupt 0000:03:08.2[C] -> GSI 16 (level, low) -> IRQ 16
ehci_hcd 0000:03:08.2: EHCI Host Controller
ehci_hcd 0000:03:08.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:03:08.2: irq 16, io mem 0xfaffdc00
ehci_hcd 0000:03:08.2: USB 2.0 started, EHCI 0.95, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
md: linear personality registered for level -1
input: AT Translated Set 2 keyboard as /class/input/input0
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: automatically using best checksumming function: pIII_sse
   pIII_sse  :  1105.000 MB/sec
raid5: using function: pIII_sse (1105.000 MB/sec)
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
EDAC MC: Ver: 2.0.0 May 10 2006
NET: Registered protocol family 2
input: ImPS/2 Generic Wheel Mouse as /class/input/input1
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1572864 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Starting balanced_irq
Using IPI Shortcut mode
md: Autodetecting RAID arrays.
md: invalid raid superblock magic on sda1
md: sda1 has invalid sb, not importing!
md: invalid raid superblock magic on sda2
md: sda2 has invalid sb, not importing!
md: invalid raid superblock magic on sda5
md: sda5 has invalid sb, not importing!
md: invalid raid superblock magic on sda6
md: sda6 has invalid sb, not importing!
md: autorun ...
md: considering sdd1 ...
md:  adding sdd1 ...
md:  adding sdc1 ...
md: sdb6 has different UUID to sdd1
md: sdb5 has different UUID to sdd1
md: sdb3 has different UUID to sdd1
md: sdb2 has different UUID to sdd1
md: sdb1 has different UUID to sdd1
md: created md0
md: bind<sdc1>
md: bind<sdd1>
md: running: <sdd1><sdc1>
raid1: raid set md0 active with 2 out of 2 mirrors
md: considering sdb6 ...
md:  adding sdb6 ...
md: sdb5 has different UUID to sdb6
md: sdb3 has different UUID to sdb6
md: sdb2 has different UUID to sdb6
md: sdb1 has different UUID to sdb6
md: created md6
md: bind<sdb6>
md: running: <sdb6>
raid1: raid set md6 active with 1 out of 2 mirrors
md: considering sdb5 ...
md:  adding sdb5 ...
md: sdb3 has different UUID to sdb5
md: sdb2 has different UUID to sdb5
md: sdb1 has different UUID to sdb5
md: created md5
md: bind<sdb5>
md: running: <sdb5>
raid1: raid set md5 active with 1 out of 2 mirrors
md: considering sdb3 ...
md:  adding sdb3 ...
md: sdb2 has different UUID to sdb3
md: sdb1 has different UUID to sdb3
md: created md3
md: bind<sdb3>
md: running: <sdb3>
raid1: raid set md3 active with 1 out of 2 mirrors
md: considering sdb2 ...
md:  adding sdb2 ...
md: sdb1 has different UUID to sdb2
md: created md2
md: bind<sdb2>
md: running: <sdb2>
raid1: raid set md2 active with 1 out of 2 mirrors
md: considering sdb1 ...
md:  adding sdb1 ...
md: created md1
md: bind<sdb1>
md: running: <sdb1>
raid1: raid set md1 active with 1 out of 2 mirrors
md: ... autorun DONE.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 240k freed
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:07.2[D] -> GSI 19 (level, low) -> IRQ 19
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:07.2: irq 19, io base 0x0000dce0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
piix4_smbus 0000:00:07.3: Found 0000:00:07.3 device
ACPI: PCI Interrupt 0000:00:0e.0[A] -> GSI 17 (level, low) -> IRQ 17
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
usb 2-2: new full speed USB device using uhci_hcd and address 3
ACPI: PCI Interrupt 0000:03:08.0[A] -> GSI 18 (level, low) -> IRQ 18
ohci_hcd 0000:03:08.0: OHCI Host Controller
ohci_hcd 0000:03:08.0: new USB bus registered, assigned bus number 3
ohci_hcd 0000:03:08.0: irq 18, io mem 0xfafff000
sr0: scsi3-mmc drive: 1x/52x writer cd/rw xa/form2 cdda tray
usb 2-2: configuration #1 chosen from 1 choice
hub 2-2:1.0: USB hub found
hub 2-2:1.0: 3 ports detected
usb 2-2.1: new full speed USB device using uhci_hcd and address 4
usb usb3: configuration #1 chosen from 1 choice
usb 2-2.1: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 3 ports detected
Uniform CD-ROM driver Revision: 3.20
usb 2-2.2: new full speed USB device using uhci_hcd and address 5
usb 2-2.2: configuration #1 chosen from 1 choice
ACPI: PCI Interrupt 0000:03:0b.0[A] -> GSI 17 (level, low) -> IRQ 17
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[17]  MMIO=[faffd000-faffd7ff]  Max Packet=[2048]  IR/IT contexts=[4/8]
ACPI: PCI Interrupt 0000:03:08.1[B] -> GSI 19 (level, low) -> IRQ 19
ohci_hcd 0000:03:08.1: OHCI Host Controller
ohci_hcd 0000:03:08.1: new USB bus registered, assigned bus number 4
ohci_hcd 0000:03:08.1: irq 19, io mem 0xfaffe000
usb 2-2.3: new full speed USB device using uhci_hcd and address 6
usb 2-2.3: configuration #1 chosen from 1 choice
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
Bluetooth: Core ver 2.8
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
usbcore: registered new driver hiddev
ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1)
Bluetooth: HCI USB driver ver 2.9
ieee1394: sbp2: Try serialize_io=0 for better performance
scsi6 : SBP-2 IEEE-1394
input: HID 0a5c:3502 as /class/input/input2
input: USB HID v1.11 Keyboard [HID 0a5c:3502] on usb-0000:00:07.2-2.2
usbcore: registered new driver hci_usb
input: HID 0a5c:3503 as /class/input/input3
input: USB HID v1.11 Mouse [HID 0a5c:3503] on usb-0000:00:07.2-2.3
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: sbp2: Forcing SBP-2 max speed down to S100
  Vendor: WDC WD12  Model: 00JB-00CRA1       Rev:     
  Type:   Direct-Access-RBC                  ANSI SCSI revision: 04
SCSI device sde: 234441648 512-byte hdwr sectors (120034 MB)
sde: Write Protect is off
SCSI device sde: drive cache: write back
SCSI device sde: 234441648 512-byte hdwr sectors (120034 MB)
sde: Write Protect is off
SCSI device sde: drive cache: write back
 sde: sde1
sd 6:0:0:0: Attached scsi disk sde
sd 6:0:0:0: Attached scsi generic sg6 type 14
done.
loadkeys: /etc/console/boottime.kmap.gz:407: addkey called with bad index 256
Setting parameters of disc: (none).
Will now activate swap.
swapon on /dev/sAdding 996020k swap on /dev/sda3.  Priority:-1 extents:1 across:996020k
da3
Done activating swap.
Will now check root file system.
fsck 1.39-WIP (09-Apr-2006)
[/sbin/fsck.ext3 (1) -- /] fsck.eEXT3 FS on sda2, xt3 -a -C0 /dev/internal journal
sda2 
/dev/sda2: clean, 23699/500960 files, 108221/1000046 blocks
Done checking root file system. 
A log will be saved in /var/log/fsck/checkroot if that location is writable.
Setting the system clock..
System Clock set. Local time: Mon May 15 02:13:35 UTC 2006.
Cleaning up ifupdown...done.
Calculating module dependencies...done.
Loading modules...
All modules loaded.
Setting the system clock again..
System Clock set. Local time: Mon May 15 02:13:36 UTC 2006.
Creating device-mapper devices....
Loading device-mapper support.
Starting raid devices: mdadm: No arrays found in config file
done.
Setting up LVM Volume Groups...
Will now check all file systems.
fsck 1.39-WIP (09-Apr-2006)
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /var] fsck.ext3 -a -C0 /dev/sda5 
/dev/sda5: clean, 17796/500960 files, 487143/1000038 blocks (check in 3 mounts)
[/sbin/fsck.ext3 (1) -- /boot] fsck.ext3 -a -C0 /dev/sda1 
/dev/sda1: clean, 159/62248 files, 81745/248976 blocks
[/sbin/fsck.ext3 (1) -- /usr] fsck.ext3 -a -C0 /dev/sda6 
/dev/sda6: clean, 307681/1001920 files, 1518808/2000084 blocks
[/sbin/fsck.ext3 (1) -- /home] fsck.ext3 -a -C0 /dev/data_vg/home_lv 
/dev/data_vg/home_lv: clean, 592642/6684672 files, 12501822/13369344 blocks
irq 16: nobody cared (try booting with the "irqpoll" option)
 <c013d034> __report_bad_irq+0x24/0x90   <c013d13f> note_interrupt+0x9f/0x260
 <c031ab78> usb_hcd_irq+0x28/0x60   <c013c933> handle_IRQ_event+0x33/0x70
 <c013ca64> __do_IRQ+0xf4/0x100   <c0105909> do_IRQ+0x19/0x30
 <c0103962> common_interrupt+0x1a/0x20   <c0101b80> default_idle+0x0/0x60
 <c0101bac> default_idle+0x2c/0x60   <c0101c48> cpu_idle+0x68/0x90
 <c0542729> start_kernel+0x289/0x400   <c0542230> unknown_bootoption+0x0/0x270
handlers:
[<c0302d20>] (ata_interrupt+0x0/0x150)
[<c031ab50>] (usb_hcd_irq+0x0/0x60)
Disabling IRQ #16
ata4: command 0xca timeout, stat 0xff host_stat 0x4
ata4: translated ATA stat/err 0xff/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata4: status=0xff { Busy }
sd 5:0:0:0: SCSI error: return code = 0x8000002
sdd: Current: sense key: Aborted Command
    Additional sense: Scsi parity error
Info fld=0xfffffff
end_request: I/O error, dev sdd, sector 234436415
ata4: command 0xea timeout, stat 0xff host_stat 0x0
ata4: translated ATA stat/err 0xff/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata4: status=0xff { Busy }
raid1: Disk failure on sdd1, disabling device. 
	Operation continuing on 1 devices
ata3: command 0xe7 timeout, stat 0x50 host_stat 0x0
ata3: status=0x50 { DriveReady SeekComplete }
ata3: command 0xca timeout, stat 0x50 host_stat 0x4
ata3: status=0x50 { DriveReady SeekComplete }
sdc: Current: sense key: No Sense
    Additional sense: No additional sense information
Info fld=0xdf93746
ata3: command 0xe7 timeout, stat 0x50 host_stat 0x0
ata3: status=0x50 { DriveReady SeekComplete }
RAID1 conf printout:
 --- wd:1 rd:2
 disk 0, wo:0, o:1, dev:sdc1
 disk 1, wo:1, o:0, dev:sdd1
RAID1 conf printout:
 --- wd:1 rd:2
 disk 0, wo:0, o:1, dev:sdc1
ata3: command 0xca timeout, stat 0x50 host_stat 0x4
ata3: status=0x50 { DriveReady SeekComplete }
sdc: Current: sense key: No Sense
    Additional sense: No additional sense information
Info fld=0x121e
[/sbin/fsck.ext3 (1) -- /local] fsck.ext3 -a -C0 /dev/data_vg/local_lv 
ata3: command 0xc8 timeout, stat 0x50 host_stat 0x4
ata3: status=0x50 { DriveReady SeekComplete }
sdc: Current: sense key: No Sense
    Additional sense: No additional sense information
Info fld=0x50001de
ata3: command 0xe7 timeout, stat 0x50 host_stat 0x0
ata3: status=0x50 { DriveReady SeekComplete }
ata3: command 0xca timeout, stat 0x50 host_stat 0x4
ata3: status=0x50 { DriveReady SeekComplete }
sdc: Current: sense key: No Sense
    Additional sense: No additional sense information
Info fld=0xdf93746
ata3: command 0xe7 timeout, stat 0x50 host_stat 0x0
ata3: status=0x50 { DriveReady SeekComplete }

.
.
.

rebooted here and booted back into 2.6.17-rc3.

Any other info I can provide?  

John

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-10 16:39         ` Kevin Radloff
@ 2006-05-15 22:08           ` Alan Cox
  2006-05-15 23:13             ` Alan Cox
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Cox @ 2006-05-15 22:08 UTC (permalink / raw)
  To: Kevin Radloff; +Cc: linux-kernel

On Mer, 2006-05-10 at 12:39 -0400, Kevin Radloff wrote:
> > I'll do some more digging, but putting printks into ata_qc_issue_prot to
> > see where it explodes is the next step I suspect.
> 
> Ah, I see.. I'll be waiting. :)

Much scratching of heads and tracing later it looks like a libata-core
bug rather than pata_pcmcia. Glad this blew up as its a nasty little bug
if I follow it right

Anyway try this patch as well

--- drivers/scsi/libata-core.c~	2006-05-15 22:38:21.282153688 +0100
+++ drivers/scsi/libata-core.c	2006-05-15 22:38:21.283153536 +0100
@@ -1853,7 +1853,8 @@
 		goto err_out;
 
 	/* step 3: set host DMA timings */
-	ata_host_set_dma(ap);
+	if(dev->dma_mode)
+        	ata_host_set_dma(ap);
 
 	/* step 4: update devices' xfer mode */
 	for (i = 0; i < ATA_MAX_DEVICES; i++) {




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Updated libata PATA patch
  2006-05-15 22:08           ` Alan Cox
@ 2006-05-15 23:13             ` Alan Cox
  0 siblings, 0 replies; 12+ messages in thread
From: Alan Cox @ 2006-05-15 23:13 UTC (permalink / raw)
  To: Kevin Radloff; +Cc: linux-kernel

On Llu, 2006-05-15 at 23:08 +0100, Alan Cox wrote:
> On Mer, 2006-05-10 at 12:39 -0400, Kevin Radloff wrote:
> > > I'll do some more digging, but putting printks into ata_qc_issue_prot to
> > > see where it explodes is the next step I suspect.
> > 
> > Ah, I see.. I'll be waiting. :)
> 
> Much scratching of heads and tracing later it looks like a libata-core
> bug rather than pata_pcmcia. Glad this blew up as its a nasty little bug
> if I follow it right

Actually ignore that (well try it if you like) but it appears something
far weirder is actually going on


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-05-15 23:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-09 17:44 Updated libata PATA patch Alan Cox
2006-05-10  1:48 ` Kevin Radloff
2006-05-10 14:09   ` Alan Cox
2006-05-10 16:05     ` Kevin Radloff
2006-05-10 16:39       ` Alan Cox
2006-05-10 16:39         ` Kevin Radloff
2006-05-15 22:08           ` Alan Cox
2006-05-15 23:13             ` Alan Cox
2006-05-12  2:34     ` John Stoffel
2006-05-15  2:46       ` John Stoffel
2006-05-11 19:06 ` Matthieu CASTET
2006-05-12 23:04 ` Guennadi Liakhovetski

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).