RELENG_7 ata panic on atacontrol attach

Dmitry Morozovsky marck at rinet.ru
Thu Apr 2 11:14:10 PDT 2009


On Thu, 2 Apr 2009, Alexander Motin wrote:

AM> Dmitry Morozovsky wrote:
AM> > On Thu, 2 Apr 2009, Alexander Motin wrote:
AM> > 
AM> > AM> > ata7: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>^M
AM> > AM> > ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
AM> > AM> > ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
AM> > AM> > ad: ad14 already exists; skipping it^M
AM> > AM> > ad: ad14 already exists; skipping it^M
AM> > AM> > ^M
AM> > AM> > ^M
AM> > AM> > Fatal trap 12: page fault while in kernel mode^M
AM> > AM> AM> It looks alike to crash I have already fixed on CURRENT:
AM> > AM> http://svn.freebsd.org/changeset/base/188464
AM> > 
AM> > Seems to be. Would you please ask re@ for MFC approval?
AM> 
AM> This is not actually a fix for original problem, but it may help to avoid
AM> system crash. Can you confirm that it helps you, as I haven't tested it on
AM> STABLE yet, I am doing it now. If it helps, I will ask re at .

Well, partially.  Machine survived a dozed of detach-remove-insert-attach 
cycles (which it definitly could not before).

However, it it still paniced on hot-remove-insert (could not dump):

ata7: DISCONNECT requested^M
ata7: DISCONNECTED^M
GEOM_LABEL: Label ufs/moose09 removed.^M
ata7: CONNECT requested^M
ata7: CONNECTED^M
ata7: SATA connect time=0ms^M
ata7: reset tp1 mask=01 ostat0=80 ostat1=00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M

[a bunch of it]

ata7: DISCONNECT requested^M
ata7: ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
CONNECT requested^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: DISCONNECT requested^M
ata7: CONNECT requested^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: DISCONNECT requested^M
ata7: CONNECT requested^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: DISCONNECT requested^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: CONNECT requested^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: DISCONNECT requested^M
ata7: CONNECT requested^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x80 err=0x00 lsb=0x00 msb=0x00^M
ata7: stat0=0x50 err=0x01 lsb=0x00 msb=0x00^M
ata7: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>^M
ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
ad14: 715404MB <Seagate ST3750330AS SD04> at ata7-master SATA300^M
ad14: 1465149168 sectors [1453521C/16H/63S] 16 sectors/interrupt 1 depth 
queue^M
GEOM: new disk ad14^M
ata7: DISCONNECTED^M
ata7: CONNECTED^M
ata7: SATA connect time=0ms^M
ata7: reset tp1 mask=01 ostat0=50 ostat1=00^M
ata7: stat0=0x50 err=0x01 lsb=0x00 msb=0x00^M
ata7: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>^M
ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
ad14: 715404MB <Seagate ST3750330AS SD04> at ata7-master SATA300^M
ad14: 1465149168 sectors [1453521C/16H/63S] 16 sectors/interrupt 1 depth 
queue^M
GEOM: new disk ad14^M
ata7: DISCONNECTED^M
ata7: CONNECTED^M
ata7: SATA connect time=0ms^M
ata7: reset tp1 mask=01 ostat0=50 ostat1=00^M
ata7: stat0=0x50 err=0x01 lsb=0x00 msb=0x00^M
ata7: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>^M
ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
ad14: 715404MB <Seagate ST3750330AS SD04> at ata7-master SATA300^M
ad14: 1465149168 sectors [1453521C/16H/63S] 16 sectors/interrupt 1 depth 
queue^M
GEOM: new disk ad14^M
ata7: DISCONNECTED^M
ata7: CONNECTED^M
ata7: SATA connect time=0ms^M
ata7: reset tp1 mask=01 ostat0=50 ostat1=00^M
ata7: stat0=0x50 err=0x01 lsb=0x00 msb=0x00^M
ata7: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>^M
ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
ad14: 715404MB <Seagate ST3750330AS SD04> at ata7-master SATA300^M
ad14: 1465149168 sectors [1453521C/16H/63S] 16 sectors/interrupt 1 depth 
queue^M
GEOM: new disk ad14^M
ata7: DISCONNECTED^M
ata7: CONNECTED^M
ata7: SATA connect time=0ms^M
ata7: reset tp1 mask=01 ostat0=50 ostat1=00^M
ata7: stat0=0x50 err=0x01 lsb=0x00 msb=0x00^M
ata7: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>^M
ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
ad14: 715404MB <Seagate ST3750330AS SD04> at ata7-master SATA300^M
ad14: 1465149168 sectors [1453521C/16H/63S] 16 sectors/interrupt 1 depth 
queue^M
GEOM: new disk ad14^M
ata7: DISCONNECTED^M
ata7: CONNECTED^M
ata7: SATA connect time=0ms^M
ata7: reset tp1 mask=01 ostat0=50 ostat1=00^M
ata7: stat0=0x50 err=0x01 lsb=0x00 msb=0x00^M
ata7: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>^M
ata7-master: pio=PIO4 wdma=WDMA2 udma=UDMA133 cable=40 wire^M
ad14: 715404MB <Seagate ST3750330AS SD04> at ata7-master SATA300^M
ad14: 1465149168 sectors [1453521C/16H/63S] 16 sectors/interrupt 1 depth 
queue^M
GEOM: new disk ad14^M
GEOM_LABEL: Label for provider ad14a is ufs/moose09.^M
^M
^M
Fatal trap 12: page fault while in kernel mode^M
cpuid = 0; apic id = 00^M
fault virtual address   = 0x4^M
fault code              = supervisor read, page not present^M
instruction pointer     = 0x20:0xc04e058b^M
stack pointer           = 0x28:0xfa320be8^M
frame pointer           = 0x28:0xfa320c8c^M
code segment            = base 0x0, limit 0xfffff, type 0x1b^M
                        = DPL 0, pres 1, def32 1, gran 1^M
processor eflags        = interrupt enabled, resume, IOPL = 0^M
current process         = 2 (g_event)^M
trap number             = 12^M

Some other hot reinserts finished successfully.

Well, at least now it is significally better that before, if one does not 
forget to detach ata channel before reinserting the device.

-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-stable mailing list