Public bug reported: I had been trying to bring up a new ubuntu server to use as a xen server using gutsy. Attempting to boot the xen kernel (after installing ubuntu-xen-server) I was unable to get past initramfs because the 3w-9xxx module would throw an error while loading. Thinking that perhaps it was something that was fixed in the newer kernel I upgraded to hardy but received the same error...
The error is exactly the same as reported in this posting http://lists.xensource.com/archives/html/xen-devel/2007-09/msg00210.html Follow through on the thread I patched drivers/scsi/3w-9xxx.c and recompiled and it seems to have fixed it for me. The patch is very brief: --- linux-2.6.24.2/drivers/scsi/3w-9xxx.c 2008-02-10 23:51:11.000000000 -0600 +++ linux-2.6.24.fixed/drivers/scsi/3w-9xxx.c 2008-03-31 14:46:46.000000000 -0500 @@ -2011,14 +2011,25 @@ pci_set_master(pdev); - if (pci_set_dma_mask(pdev, DMA_64BIT_MASK) - || pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK)) - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) - || pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { - TW_PRINTK(host, TW_DRIVER, 0x23, "Failed to set dma mask"); - retval = -ENODEV; - goto out_disable_device; - } +/* Re-instated following chunk of code to replace the commented out block below it.. */ + + retval = pci_set_dma_mask(pdev, sizeof(dma_addr_t) > 4 ? DMA_64BIT_MASK : DMA_32BIT_MASK); + if (retval) { + TW_PRINTK(host, TW_DRIVER, 0x23, "Failed to set dma mask"); + goto out_disable_device; + } +/* Commented out as per suggestion in thread on xen devel list + * http://lists.xensource.com/archives/html/xen-devel/2007-09/msg00210.html + * + * if (pci_set_dma_mask(pdev, DMA_64BIT_MASK) + * || pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK)) + * if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) + * || pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { + * TW_PRINTK(host, TW_DRIVER, 0x23, "Failed to set dma mask"); + * retval = -ENODEV; + * goto out_disable_device; + * } + */ host = scsi_host_alloc(&driver_template, sizeof(TW_Device_Extension)); if (!host) { ** Affects: xen-3.2 (Ubuntu) Importance: Undecided Status: New -- Xen kerenl oops loading 3w-9xxx driver https://bugs.launchpad.net/bugs/209893 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs