From owner-freebsd-current@FreeBSD.ORG Tue May 19 06:53:21 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 19A1D10656C6; Tue, 19 May 2009 06:53:21 +0000 (UTC) (envelope-from klingfon@gmail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 19EE38FC24; Tue, 19 May 2009 06:53:16 +0000 (UTC) (envelope-from klingfon@gmail.com) Received: by ewy3 with SMTP id 3so4481786ewy.43 for ; Mon, 18 May 2009 23:53:16 -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=AYYGm/+EmgbQacDWzm3Pou4FK8l7x1A9TiygH2SbOaE=; b=nCGdHKPS98KDOOhcv580hL/sWkBGRoamSE+k5NTJU78o+Xp5nNI9Ibfxe9f4d1NrNq bQJ6dXRNyn5e+gDYPKGakjJYdZ6Uls7BXF0h0izGUw3Cs5tcg6fz+C3tMchBR4TmLJ/s 0T7vlHbMalyjyJqGIkMci+sg/Yh6W8UShzAYo= 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=klZTLCm+smlkFp4one8iOcs9SpRuTPRVlQ1vpzr/M9tguCex5BYH7SAdKIAdH/Wbph 4++IdP8bdFHqi/266YOnDbp667vFwqFf/M1Bch4yZ0kMp3jAwR8r5iMhN4k51dgRR3W/ NXjPbTGc5SD92Kz84mFaEYJsKpyxYoMzhKB0I= MIME-Version: 1.0 Received: by 10.216.36.209 with SMTP id w59mr2382116wea.67.1242715995913; Mon, 18 May 2009 23:53:15 -0700 (PDT) In-Reply-To: <4A121C40.7040201@FreeBSD.org> References: <43b1bb350905150939s5d503f00x27116e7ffe79a37@mail.gmail.com> <4A10F3E3.40306@FreeBSD.org> <43b1bb350905180025g682d3764qba5a450d85d8f961@mail.gmail.com> <43b1bb350905181331r44b35b13i22aa1ba6a18103ed@mail.gmail.com> <4A121C40.7040201@FreeBSD.org> Date: Tue, 19 May 2009 08:53:15 +0200 Message-ID: <43b1bb350905182353v3812c523pa52cdf41ce886907@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: Tue, 19 May 2009 06:53:21 -0000 2009/5/19 Alexander Motin > Magnus Kling wrote: > >> Compiled once again. No change. The kernel panics. >> > > I don't see obvious problems there. I think something else may erase that > controller softc pointer. Can you try to apply attached patch. It may giv= e > us some more clues about what is actually become wrong there. > > May be it is somehow related to the RAID array built on controller. > ata-raid part is quite complicated and historically was buggy quite often= . > Can you instead of your array drives try to attach some other one without > any array built or just disable ata-raid module? Are you booting from som= e > other device now? > > -- > Alexander Motin > > --- ata-promise.c.prev 2009-05-14 17:57:13.000000000 +0300 > +++ ata-promise.c 2009-05-19 05:20:13.000000000 +0300 > @@ -1053,6 +1053,15 @@ ata_promise_sx4_command(struct ata_reque > { > device_t gparent =3D GRANDPARENT(request->dev); > struct ata_pci_controller *ctlr =3D device_get_softc(gparent); > + > +if (ctlr =3D=3D NULL) { > + printf("ctlr IS NULL!!!\n"); > + device_printf(request->dev, "request->dev\n"); > + device_printf(request->parent, "request->parent\n"); > + device_printf(device_get_parent(request->dev), > "device_get_parent(request->dev)\n"); > + device_printf(gparent, "gparent\n"); > +} > + > struct ata_channel *ch =3D device_get_softc(request->parent); > struct ata_dma_prdentry *prd =3D request->dma->sg; > caddr_t window =3D rman_get_virtual(ctlr->r_res1); > > I applied the patch and rebuilt the kernel. But when should this be printed= ? At shutdown or boot? I can=B4t see it at all. When panic occurs I got the attached text as output on my serial console. The raidcontroller has two ata disks attached. Using RAID 1. My OS is on a separate disk using the motherboards ata connector. Should I disable(unplug the disks) and add a spare harddrive in non-raid state to the raid card? /magnus