2002-06-24 04:04:54

by Frank Davis

[permalink] [raw]
Subject: [PATCH] 2.5.24 : drivers/scsi/dpt_i2o.c for PCI DMA

Hello all,
Here's another 1st step patch for DMA usage for the dpt_i2o driver.
Please review.

Regards,
Frank

--- drivers/scsi/dpt_i2o.c.old Mon Jun 10 12:18:59 2002
+++ drivers/scsi/dpt_i2o.c Sun Jun 23 23:52:48 2002
@@ -879,6 +879,11 @@
if(pci_enable_device(pDev)) {
return -EINVAL;
}
+
+ if(pci_set_dma_mask(pDev, 0xffffffff))
+ {
+ printk(KERN_WARNING "dpt_i2o : No suitable DMA available\n");
+ }
pci_set_master(pDev);

base_addr0_phys = pci_resource_start(pDev,0);


2002-06-24 17:05:09

by Ricky Beam

[permalink] [raw]
Subject: Re: [PATCH] 2.5.24 : drivers/scsi/dpt_i2o.c for PCI DMA

On Sun, 23 Jun 2002, Frank Davis wrote:
>Hello all,
> Here's another 1st step patch for DMA usage for the dpt_i2o driver.
>Please review.

There *are* 64bit boards controlled by the dpt_i2o driver. So, blindly
setting the DMA mask for 32bit is not, entirely, correct.

--Ricky