From owner-freebsd-current@FreeBSD.ORG Mon May 18 07:25:15 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 3B82D1065670; Mon, 18 May 2009 07:25:15 +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 8F47A8FC15; Mon, 18 May 2009 07:25:14 +0000 (UTC) (envelope-from klingfon@gmail.com) Received: by ewy3 with SMTP id 3so3698199ewy.43 for ; Mon, 18 May 2009 00:25:13 -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=hXCOH2aqccm93OqD0rIk3IQD0WmIGdvo/kJYnE+8OTk=; b=CenC5ToHk/9EVIUlIt5SgMLKoWuP13Dxph9m2AH9nuD7ZAOr5EE7y6aK/Xh5OMZfs/ qBJH0EN0XnFcjQxmSQs4l3GVVtaEttH373YvBfMjVZB3O88/hv7m9botEeeUuCmWQCN7 7b4EPM1RnGzCBFbvBxz3fDN/c96SbQ7vXysSY= 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=W01LCltCIyYNJRF5Y80xBMdgyKtamHFXtu8X7EC60EK0W5W8l+wRu0K/JjUobwCLH3 tzgf557E5P9eRWDcnMx11kVIKFoW15K49d0s7ZMMQChNHpbZSNB98RTSBdrLflEc/AOq Wyv5zLhcDkn6wWO23oRRYX5iT53YJqirw3hMc= MIME-Version: 1.0 Received: by 10.216.20.8 with SMTP id o8mr2012044weo.112.1242631513099; Mon, 18 May 2009 00:25:13 -0700 (PDT) In-Reply-To: <4A10F3E3.40306@FreeBSD.org> References: <43b1bb350905150939s5d503f00x27116e7ffe79a37@mail.gmail.com> <4A10F3E3.40306@FreeBSD.org> Date: Mon, 18 May 2009 09:25:13 +0200 Message-ID: <43b1bb350905180025g682d3764qba5a450d85d8f961@mail.gmail.com> From: Magnus Kling To: Alexander Motin Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit 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: Mon, 18 May 2009 07:25:15 -0000 2009/5/18 Alexander Motin > Hi. > > Magnus Kling wrote: > >> After having some trouble with ACPI kernel in 7.1, regarding booting with >> a Promise SX4000 card in a RAID1 setup, I tried to upgrade to CURRENT to >> test the bits that John Baldwin wrote and had commited to head. >> Result: >> Well, it boots ok but on reboot I get a kernel panic after the disks have >> made the sync. >> Attached is a bt and panic message. >> > > According to backtrace, system tried to reference address 0xc while sending > final flush command to the drive. ATA has no other shutdown actions except > this, so any contexts and states should not be lost in any case. And as soon > as your drive was detected, the controller is probably operable. Haven't you > seen any other ATA error messages during boot or later? > > If my i386 kernel is more or less coherent to your's, > ata_promise_sx4_command+0x39 address where it have crashed means > caddr_t window = rman_get_virtual(ctlr->r_res1); > line, and especially 'ctlr->r_res1' part. So looks like > struct ata_pci_controller *ctlr = device_get_softc(gparent); > returned NULL there. But the same technique used by many other ATA drivers > without problems, so I am a bit surprised. > > Is the problem continuously repeatable? Does the controller operates well > all other time before shutdown? Are you sure that you have rebuilt your > kernel correctly? > > -- > Alexander Motin > Yes it is repeatable. Happens every reboot or shutdown. Controller works ok all other time. (I have my homedir mounted to the raidarray.) The source was synced and then I did a normal: make buildworld make buildkernel make installkernel reboot to singel user mode and mergemaster -p + make installworld + mergemaster then reboot. I will try to compile it again... /Magnus