Hello all,
I've added the check for 64-bit DMA addressing per Rick's comment.
Regards,
Frank
--- drivers/scsi/dpt_i2o.c.old Mon Jun 10 12:18:59 2002
+++ drivers/scsi/dpt_i2o.c Mon Jun 24 13:18:03 2002
@@ -879,6 +879,21 @@
if(pci_enable_device(pDev)) {
return -EINVAL;
}
+ int using_dac;
+
+ if(!pci_set_dma_mask(pDev, 0xffffffffffffffff))
+ {
+ using_dac = 1;
+ printk("dpt_i2o : Using 64-bit DMA addressing\n");
+
+ }else if(!pci_set_dma_mask(pDev, 0xffffffff))
+ {
+ using_dac = 0;
+ printk("dpt_i2o : Using 32-bit DMA addressing\n");
+
+ }else {
+ printk(KERN_WARNING "dpt_i2o : No suitable DMA available\n");
+ }
pci_set_master(pDev);
base_addr0_phys = pci_resource_start(pDev,0);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:08 EST