Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 28 Dec 2002 17:15:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 28 Dec 2002 17:15:52 -0500 Received: from host194.steeleye.com ([66.206.164.34]:38162 "EHLO pogo.mtv1.steeleye.com") by vger.kernel.org with ESMTP id ; Sat, 28 Dec 2002 17:15:51 -0500 Message-Id: <200212282224.gBSMO5h03843@localhost.localdomain> X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 To: "Justin T. Gibbs" , Andrew Morton cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] aic7xxx bouncing over 4G In-Reply-To: Message from "Justin T. Gibbs" of "Sat, 28 Dec 2002 13:50:51 MST." <770128112.1041108651@aslan.scsiguy.com> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_8987307530" Date: Sat, 28 Dec 2002 16:24:05 -0600 From: James Bottomley X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2004 Lines: 65 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/