Re: RFC: ATA to CAM integration patch (INTEL DX58SO)

From: Mike Tancsa <mike_at_sentex.net>
Date: Sun, 05 Jul 2009 12:24:45 -0400
At 07:29 AM 7/5/2009, Mike Tancsa wrote:
>At 02:41 AM 7/5/2009, Alexander Motin wrote:
>
>>>The drive we connected has some bad sectors, so I wanted to try a 
>>>secure wipe as much as possible before RMAing the drive.  I also 
>>>thought it would be useful to test with the new driver how it handles bad disks
>>>Is this such an error ?
>>>Jul  4 20:25:57 ich10 kernel: ahcich2: ahci_ch_intr ERROR is 
>>>40000001 cs 00000004 ss 00000000 rs 00000004 tfd 451 serr 00000000
>>
>>This is AHCI driver debugging. I've removed it in latest patch. In 
>>this case it means that drive signals some command error.
>
>
>Actually, looks like the box panic'd, but it seems to be 
>elsewhere.  After hitting the bad sectors for some time,

Here is another with invariants compiled in.  Again, this is writing 
to a disk that has bad sectors and is failing, so not sure if this is 
a case of "dont do that"

         ---Mike

Synchronize cache failed
Physical memory: 3556 MB
Dumping 223 MB:ahcich2: ahci_ch_intr ERROR is 40000008 cs 00000000 ss 
00010000 rs 00010000 tfd 441 serr 00000000


Fatal trap 12: page fault while in kernel mode
cpuid = 4; apic id = 04
fault virtual address   = 0xb68dc371
fault code              = supervisor read, page not present
ahcich2: Error while READ LOG EXT
ahcich2: ahci_ch_intr ERROR is 40000008 cs 00000000 ss 00000400 rs 
00000400 tfd 441 serr 00000000
ahcich2: ahci_ch_intr ERROR is 40000001 cs 00000800 ss 00000000 rs 
00000800 tfd 471 serr 00000000
ahcich2: Error while READ LOG EXT
ahcich2: ahci_ch_intr ERROR is 40000008 cs 00000000 ss 00001000 rs 
00001000 tfd 441 serr 00000000
ahcich2: ahci_ch_intr ERROR is 40000001 cs 00002000 ss 00000000 rs 
00002000 tfd 471 serr 00000000
ahcich2: Error while READ LOG EXT
ahcich2: ahci_ch_intr ERROR is 40000008 cs 00000000 ss 00004000 rs 
00004000 tfd 441 serr 00000000
panic: initiate_write_inodeblock_ufs2: already started
cpuid = 6
Uptime: 1h13m8s
ahcich2: ahci_ch_intr ERROR is 40000001 cs 00008000 ss 00000000 rs 
00008000 tfd 471 serr 00000000
ahcich2: Error while READ LOG EXT
(ada2:g_vfs_done():ahcich2:0:ada2[READ(offset=56068767744, 
length=16384)]0:error = 50):
Synchronize cache failed
Physical memory: 3556 MB
Dumping 223 MB:ahcich2: ahci_ch_intr ERROR is 40000008 cs 00000000 ss 
00010000 rs 00010000 tfd 441 serr 00000000


Fatal trap 12: page fault while in kernel mode
cpuid = 4; apic id = 04
fault virtual address   = 0xb68dc371
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc047f02b
stack pointer           = 0x28:0xc6e69bf0
frame pointer           = 0x28:0xc6e69c08
code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 12 (irq257: ahci0)
trap number             = 12
  208 192 176 160 144 128 112 96 80 64 48 32 16

Reading symbols from /boot/kernel/ahci.ko...Reading symbols from 
/boot/kernel/ahci.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ahci.ko
Reading symbols from /boot/kernel/ichwd.ko...Reading symbols from 
/boot/kernel/ichwd.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ichwd.ko
#0  doadump () at pcpu.h:246
246     pcpu.h: No such file or directory.
         in pcpu.h
(kgdb) #0  doadump () at pcpu.h:246
#1  0xc086c59e in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:419
#2  0xc086c839 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:575
#3  0xc0a87a1e in softdep_disk_io_initiation (bp=0xdb115fe0)
     at /usr/src/sys/ufs/ffs/ffs_softdep.c:4056
#4  0xc0a8b98c in ffs_geom_strategy (bo=0xc810fc2c, bp=0xdb115fe0)
     at buf.h:404
#5  0xc08e1b79 in bufwrite (bp=0xdb115fe0) at buf.h:397
#6  0xc0a8b0bb in ffs_bufwrite (bp=0xdb115fe0)
     at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1893
#7  0xc08ded28 in vfs_bio_awrite (bp=0xdb115fe0) at buf.h:385
#8  0xc08e851b in vop_stdfsync (ap=0xe77a8c7c)
     at /usr/src/sys/kern/vfs_default.c:608
#9  0xc07f31cc in devfs_fsync (ap=0xe77a8c7c)
     at /usr/src/sys/fs/devfs/devfs_vnops.c:556
#10 0xc0b8fb95 in VOP_FSYNC_APV (vop=0xc0d1a020, a=0xe77a8c7c)
     at vnode_if.c:1267
#11 0xc08f8308 in sync_vnode (slp=0xc76a27e4, bo=0xe77a8ce8, td=0xc78ad6c0)
     at vnode_if.h:549
#12 0xc08f8653 in sched_sync () at /usr/src/sys/kern/vfs_subr.c:1799
#13 0xc0843f78 in fork_exit (callout=0xc08f83e0 <sched_sync>, arg=0x0,
     frame=0xe77a8d38) at /usr/src/sys/kern/kern_fork.c:842
#14 0xc0b677b0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:270
(kgdb)
Received on Sun Jul 05 2009 - 14:24:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC