Re: Kernel panic when reboot on server with a Promise SX4000 and two ATA disks RAID1.

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Tue, 19 May 2009 05:41:04 +0300
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 give 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 some 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
_at__at_ -1053,6 +1053,15 _at__at_ ata_promise_sx4_command(struct ata_reque
 {
     device_t gparent = GRANDPARENT(request->dev);
     struct ata_pci_controller *ctlr = device_get_softc(gparent);
+
+if (ctlr == 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 = device_get_softc(request->parent);
     struct ata_dma_prdentry *prd = request->dma->sg;
     caddr_t window = rman_get_virtual(ctlr->r_res1);
Received on Tue May 19 2009 - 00:41:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC