mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: "Justin T. Gibbs" <gibbs@scsiguy.com>, Andrew Morton <akpm@digeo.com>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] aic7xxx bouncing over 4G
Date: Sat, 28 Dec 2002 16:24:05 -0600	[thread overview]
Message-ID: <200212282224.gBSMO5h03843@localhost.localdomain> (raw)
In-Reply-To: Message from "Justin T. Gibbs" <gibbs@scsiguy.com>  of "Sat, 28 Dec 2002 13:50:51 MST." <770128112.1041108651@aslan.scsiguy.com>

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

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


[-- Attachment #2: tmp.diff --]
[-- Type: text/plain , Size: 994 bytes --]

===== 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;

  reply	other threads:[~2002-12-28 22:15 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-21  0:12 Janet Morgan
2002-12-21  0:23 ` Justin T. Gibbs
2002-12-21  0:29   ` William Lee Irwin III
2002-12-21  0:59     ` Justin T. Gibbs
2002-12-21  1:35       ` William Lee Irwin III
2002-12-21  1:59         ` Justin T. Gibbs
2002-12-21  4:10           ` David S. Miller
2002-12-21 15:19             ` Justin T. Gibbs
2002-12-21 21:41               ` David S. Miller
2002-12-21  7:10           ` Erik Andersen
2002-12-21 15:23             ` Justin T. Gibbs
2002-12-21  8:55           ` Christoph Hellwig
2002-12-21 15:30             ` Justin T. Gibbs
2002-12-21 17:45               ` Doug Ledford
2002-12-21  0:51   ` Samuel Flory
2002-12-28  5:32     ` Marcelo Tosatti
2002-12-28  9:16       ` Tomas Szepe
2002-12-28 13:33         ` Rik van Riel
2002-12-28 13:40           ` Tomas Szepe
2002-12-28 15:00           ` James Bottomley
2002-12-28 19:16             ` Justin T. Gibbs
2002-12-28 20:16               ` James Bottomley
2002-12-28 21:02                 ` Justin T. Gibbs
2002-12-28 20:18               ` Andrew Morton
2002-12-28 20:50                 ` Justin T. Gibbs
2002-12-28 22:24                   ` James Bottomley [this message]
2002-12-28 22:31                     ` Justin T. Gibbs
2002-12-28 22:52                       ` J.A. Magallon
2002-12-28 22:46                     ` Andrew Morton
2002-12-28 19:13           ` Justin T. Gibbs
2002-12-28 19:19             ` Rik van Riel
2002-12-28 19:43               ` Tomas Szepe
     [not found]                 ` <20021228231122.GC1999@werewolf.able.es>
2002-12-28 23:45                   ` [BUG] new aic code [was Re: [PATCH] aic7xxx bouncing over 4G ] J.A. Magallon
2002-12-28 19:42             ` [PATCH] aic7xxx bouncing over 4G Doug Ledford
2002-12-28 21:04             ` Willy Tarreau
2002-12-28 22:37             ` David Lang
2002-12-29 12:54             ` Arjan van de Ven
2003-01-03 15:28               ` Justin T. Gibbs
2003-01-06  1:40                 ` aic79xx bug? my stupidity? Roberto Peon
2003-01-06  1:46                   ` Justin T. Gibbs
2002-12-30 21:06           ` [PATCH] aic7xxx bouncing over 4G Samuel Flory
2002-12-28  9:50       ` Christoph Hellwig
2002-12-30  1:23       ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212282224.gBSMO5h03843@localhost.localdomain \
    --to=james.bottomley@steeleye.com \
    --cc=akpm@digeo.com \
    --cc=gibbs@scsiguy.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®