All of lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	Dave Jones <davej@suse.de>
Subject: [PATCH] lk 2.5.3 scsi generic (sg) driver
Date: Sat, 02 Feb 2002 12:14:50 -0500	[thread overview]
Message-ID: <3C5C1E8A.9D0FFAD3@torque.net> (raw)

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



             reply	other threads:[~2002-02-02 18:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-02 17:14 Douglas Gilbert [this message]
2002-02-05 23:20 ` gprof / profiling support ? Dave Francheski
2002-02-06 20:09   ` Jakob Østergaard

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=3C5C1E8A.9D0FFAD3@torque.net \
    --to=dougg@torque.net \
    --cc=davej@suse.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.