public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Shai Fultheim" <shai@ftcon.com>
To: "'Vojtech Pavlik'" <vojtech@suse.cz>,
	"'Bartlomiej Zolnierkiewicz'" <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: <linux-ide@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: RE: Multiple (ICH3) IDE-controllers in a system
Date: Thu, 6 May 2004 14:05:56 -0700	[thread overview]
Message-ID: <200405062105.BLI83826@ms6.netsolmail.com> (raw)
In-Reply-To: <200405061918.BLI57844@ms6.netsolmail.com>

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

Vojtech and Bartlomiej,

Attached patch that fix the problem according to (2) below.  Let me know if
you can apply it.

Thanks. 


--- linux-2.6.5-mm6.orig/arch/i386/pci/fixup.c  2004-04-29
05:23:35.000000000 -0700
+++ linux-2.6.5-mm6/arch/i386/pci/fixup.c       2004-05-07
01:45:31.000000000 -0700
@@ -92,6 +92,15 @@
        int i;
 
        /*
+        * Runs the fixup only for the first IDE controller
+        * (Shai Fultheim - shai@ftcon.com)
+        */
+       static int called = 0;
+       if (called)
+               return;
+       called = 1;
+
+       /*
         * There exist PCI IDE controllers which have utter garbage
         * in first four base registers. Ignore that.
         */



--Shai


-----Original Message-----
From: linux-ide-owner@vger.kernel.org
[mailto:linux-ide-owner@vger.kernel.org] On Behalf Of Shai Fultheim
Sent: Thursday, May 06, 2004 12:19
To: 'Vojtech Pavlik'; 'Bartlomiej Zolnierkiewicz'
Cc: linux-ide@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: RE: Multiple (ICH3) IDE-controllers in a system

Ok.
I would suggest one of the followings:
1. If we can't identify those machine, I would recommend to drop that patch,
since probably the BIOS is taking care of it nowadays.
2. If we believe we can't do (1) above, lets have it rest only the first
controller it is being called for.  This will make any of the other
controllers usable if their ports are set right.

Any comments?
 

--Shai


-----Original Message-----
From: linux-ide-owner@vger.kernel.org
[mailto:linux-ide-owner@vger.kernel.org] On Behalf Of Vojtech Pavlik
Sent: Wednesday, May 05, 2004 23:46
To: Bartlomiej Zolnierkiewicz
Cc: shai@ftcon.com; linux-ide@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: Multiple (ICH3) IDE-controllers in a system

On Wed, May 05, 2004 at 05:16:43PM +0200, Bartlomiej Zolnierkiewicz wrote:
> 
> Hi Vojtech,
> 
> Do I correctly assume that these fixups for Intel chipsets are from you?

Yes.

>
http://linus.bkbits.net:8080/linux-2.5/cset@3cfbacdfzHvfqp0Sa45QXt9pNn3LNg?n
av=index.html|src/|src/arch|src/arch/i386|src/arch/i386/pci|related/arch/i38
6/pci/fixup.c
>
http://linus.bkbits.net:8080/linux-2.5/cset@3cfcec0fOJreGFyCWkPeT7EWiydYFw?n
av=index.html|src/|src/arch|src/arch/i386|src/arch/i386/pci|related/arch/i38
6/pci/fixup.c
> 
> Care to explain why 'trash' fixup is needed in 2.6 but not in 2.4?

Because 2.4 was never used on the affected machines, where this fixup
was needed - those machines sere putting nonsense into the BARs. I don't
recall exactly what model they were, though I remember they were one of
the first machines with ICH MMIO support.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[-- Attachment #2: pci-ide-fixup.patch --]
[-- Type: application/octet-stream, Size: 499 bytes --]

--- linux-2.6.5-mm6.orig/arch/i386/pci/fixup.c	2004-04-29 05:23:35.000000000 -0700
+++ linux-2.6.5-mm6/arch/i386/pci/fixup.c	2004-05-07 01:45:31.000000000 -0700
@@ -92,6 +92,15 @@
 	int i;
 
 	/*
+	 * Runs the fixup only for the first IDE controller
+	 * (Shai Fultheim - shai@ftcon.com)
+	 */
+	static int called = 0;
+	if (called)
+		return;
+	called = 1;
+
+	/*
 	 * There exist PCI IDE controllers which have utter garbage
 	 * in first four base registers. Ignore that.
 	 */

      reply	other threads:[~2004-05-06 21:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04 22:13 Multiple (ICH3) IDE-controllers in a system Shai Fultheim
2004-05-05 15:16 ` Bartlomiej Zolnierkiewicz
2004-05-06  6:45   ` Vojtech Pavlik
2004-05-06 19:18     ` Shai Fultheim
2004-05-06 21:05       ` Shai Fultheim [this message]

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=200405062105.BLI83826@ms6.netsolmail.com \
    --to=shai@ftcon.com \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vojtech@suse.cz \
    /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