Re: [PATCH] aic7xxx bouncing over 4G

James Bottomley (James.Bottomley@steeleye.com)
Sat, 28 Dec 2002 16:24:05 -0600


This is a multipart MIME message.

--==_Exmh_8987307530
Content-Type: text/plain; charset=us-ascii

gibbs@scsiguy.com said:
> Hmm. The only previous bug report I had in this area was related to a
> missing cast. That was fixed, but I guess it wasn't enough to solve
> the problem.

It looks like possibly a config option that doesn't exist (and a possibly
improper reliance on the dma_mask default value---which should work almost all
the time, but it's safer to set it).

Andrew, could you try the attached (untested) patch and see if the problem
goes away.

James

--==_Exmh_8987307530
Content-Type: text/plain ; name="tmp.diff"; charset=us-ascii
Content-Description: tmp.diff
Content-Disposition: attachment; filename="tmp.diff"

===== aic7xxx_osm.c 1.7 vs edited =====
--- 1.7/drivers/scsi/aic7xxx/aic7xxx_osm.c Fri Dec 20 18:59:50 2002
+++ edited/aic7xxx_osm.c Sat Dec 28 16:18:40 2002
@@ -1297,14 +1297,12 @@
*/
.max_sectors = 8192,
#endif
-#if defined CONFIG_HIGHIO
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
/* Assume RedHat Distribution with its different HIGHIO conventions. */
.can_dma_32 = 1,
.single_sg_okay = 1,
#else
.highmem_io = 1,
-#endif
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
.name = "aic7xxx",
===== aic7xxx_osm_pci.c 1.3 vs edited =====
--- 1.3/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c Thu Dec 12 14:44:00 2002
+++ edited/aic7xxx_osm_pci.c Sat Dec 28 15:47:14 2002
@@ -166,6 +166,9 @@
ahc->flags |= AHC_39BIT_ADDRESSING;
ahc->platform_data->hw_dma_mask =
(bus_addr_t)(0x7FFFFFFFFFULL & (bus_addr_t)~0);
+ } else {
+ ahc_pci_set_dma_mask(pdev, 0xffffffffULL);
+ ahc->platform_data->hw_dma_mask = 0xffffffffULL;
}
#endif
ahc->dev_softc = pci;

--==_Exmh_8987307530--

-
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/