public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lk 2.5.3 scsi generic (sg) driver
@ 2002-02-02 17:14 Douglas Gilbert
  2002-02-05 23:20 ` gprof / profiling support ? Dave Francheski
  0 siblings, 1 reply; 3+ messages in thread
From: Douglas Gilbert @ 2002-02-02 17:14 UTC (permalink / raw)
  To: linux-scsi, linux-kernel, Dave Jones

In lk 2.5.3 the sg driver tries to set up both address
and page+offset in scatterlist entries. Unfortunately
asm-i386/pci.h's pci_map_sg() contains this check:

                if (sg[i].address && sg[i].page)
                        BUG();

which kills that strategy when the sym53c8xx driver
uses pci_map_sg(). This patch has been posted earlier
for lk 2.5.3-pre5 and is still required for lk 2.5.3

Doug Gilbert


--- linux/drivers/scsi/sg.c     Thu Jan 24 18:45:01 2002
+++ linux/drivers/scsi/sg.c3523 Thu Jan 24 20:53:28 2002
@@ -19,7 +19,7 @@
  */
 #include <linux/config.h>
 #ifdef CONFIG_PROC_FS
- static char sg_version_str[] = "Version: 3.5.23 (20020103)";
+ static char sg_version_str[] = "Version: 3.5.23 (20020124)";
 #endif
  static int sg_version_num = 30523; /* 2 digits for each component */
 /*
@@ -76,7 +76,7 @@
 #include <linux/version.h>
 #endif /* LINUX_VERSION_CODE */

-#define SG_STILL_HAVE_ADDRESS_IN_SCATTERLIST
+/* #define SG_STILL_HAVE_ADDRESS_IN_SCATTERLIST */

 #define SG_ALLOW_DIO_DEF 0
 #define SG_ALLOW_DIO_CODE      /* compile out be commenting this define */



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-06 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-02 17:14 [PATCH] lk 2.5.3 scsi generic (sg) driver Douglas Gilbert
2002-02-05 23:20 ` gprof / profiling support ? Dave Francheski
2002-02-06 20:09   ` Jakob Østergaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox