From owner-freebsd-current@FreeBSD.ORG Wed May 20 06:21:53 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F03AF1065673; Wed, 20 May 2009 06:21:53 +0000 (UTC) (envelope-from klingfon@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 4FDCF8FC23; Wed, 20 May 2009 06:21:53 +0000 (UTC) (envelope-from klingfon@gmail.com) Received: by fg-out-1718.google.com with SMTP id e12so904914fga.12 for ; Tue, 19 May 2009 23:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=X+CVvR/pphrSAuYPn3O7G+tR/VWSlgL28MmRBxe33FU=; b=LCiMyuXNVXDgnF7k5xKX5g8LYQR7+jZMc2d4rsNBpaQOhMQ+3kwFO+tg6YCkKsbgt0 c7EqpIPt2czUwcViAasC34dvLzvj3McM01nHIlVzXqaugau1WxTvSMMjnoljO2LEgoWA Eq/d13GgNSyL79tR0ZnkKsKaQAH+F9oOSUMQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=oh+IROCIXCNNLWogo//n2wacEZQf3wg/guXSFZzi79VUF54Qa4V1OsLyQXpoTJm1q8 dLHFfCzhMVUskpQ1Eg6MrB/XsRs/8GBtue15VH6k34yesQG/RJSsMtODNqqqOhRsUIwp X9qKON2YxOUPtD9JEJIe0q/aI96WirHQA6U1s= MIME-Version: 1.0 Received: by 10.239.161.132 with SMTP id h4mr78455hbd.14.1242800512208; Tue, 19 May 2009 23:21:52 -0700 (PDT) In-Reply-To: <4A130C5C.6090104@FreeBSD.org> References: <43b1bb350905150939s5d503f00x27116e7ffe79a37@mail.gmail.com> <4A10F3E3.40306@FreeBSD.org> <43b1bb350905180025g682d3764qba5a450d85d8f961@mail.gmail.com> <43b1bb350905181331r44b35b13i22aa1ba6a18103ed@mail.gmail.com> <4A121C40.7040201@FreeBSD.org> <43b1bb350905182353v3812c523pa52cdf41ce886907@mail.gmail.com> <4A1264E8.2080707@FreeBSD.org> <43b1bb350905190554i511c1b32sa9320b10a86e2af2@mail.gmail.com> <4A130C5C.6090104@FreeBSD.org> Date: Wed, 20 May 2009 08:21:52 +0200 Message-ID: <43b1bb350905192321h4e43e178vc9a00b646d0e2340@mail.gmail.com> From: Magnus Kling To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: Kernel panic when reboot on server with a Promise SX4000 and two ATA disks RAID1. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 06:21:54 -0000 2009/5/19 Alexander Motin > Magnus Kling wrote: > >> 2009/5/19 Alexander Motin > >> >> Magnus Kling wrote: >> > I applied the patch and rebuilt the kernel. But when should this b= e >> > printed? At shutdown or boot? I can=B4t see it at all. >> >> On shutdown before panic. >> >> > When panic occurs I got the attached text as output on my serial >> console. >> > > Hmm. I don't see our debug messages there. Or it didn't shot due to some > stupid reason or problem is in different line. Could you try addr2line > utility to identify source line of 0xc0567110 address? > > Also try to change our > if (ctlr =3D=3D NULL) { > with > if (request->u.ata.command =3D=3D ATA_FLUSHCACHE || request->u.ata.comman= d =3D=3D > ATA_FLUSHCACHE48) { > > May be you could give me access to your server and it's serial console? I > would make debugging faster. > > -- > Alexander Motin > Addr2line gives me /usr/src/sys/dev/ata/chipsets/ata-promise.c:1066 struct ata_dma_prdentry *prd =3D request->dma->sg; Can we do an if statement with pointer prd? Or check what "sg" is at the moment? What is "sg"? /Magnus