Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 2009 22:14:07 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Alexander Motin <mav@FreeBSD.org>
Cc:        stable@FreeBSD.org
Subject:   Re: RELENG_7 ata panic on atacontrol attach
Message-ID:  <alpine.BSF.2.00.0904022205500.19163@woozle.rinet.ru>
In-Reply-To: <49D4F679.5040703@FreeBSD.org>
References:  <alpine.BSF.2.00.0903311417251.60285@woozle.rinet.ru> <49D29097.9040701@FreeBSD.org> <alpine.BSF.2.00.0904010330360.32133@woozle.rinet.ru> <49D3BD14.9070505@FreeBSD.org> <alpine.BSF.2.00.0904021154020.32133@woozle.rinet.ru> <alpine.BSF.2.00.0904021716510.19163@woozle.rinet.ru> <49D4BF5C.4010509@FreeBSD.org> <alpine.BSF.2.00.0904022114030.19163@woozle.rinet.ru> <49D4F679.5040703@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@.

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@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0904022205500.19163>