mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: Richard Mueller <mueller@teamix.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PROBLEM] D-Link DFE-580TX: Only 3 Ports working
Date: Mon, 25 Nov 2002 20:18:03 +0300	[thread overview]
Message-ID: <20021125201803.A830@jurassic.park.msu.ru> (raw)
In-Reply-To: <140282249663.20021125161149@teamix.net>; from mueller@teamix.net on Mon, Nov 25, 2002 at 04:11:49PM +0100

On Mon, Nov 25, 2002 at 04:11:49PM +0100, Richard Mueller wrote:
> eth5: D-Link DFE-580TX 4 port Server Adapter at 0xbe00, 00:00:00:00:00:00, IRQ 20.
						    ^^^^
It's clear BIOS bug. All four controllers are sitting behind PCI-to-PCI
bridge which blocks IO access to the ranges 0xb100-0xb3ff, 0xb500-0xb7ff,
0xb900-0xbbff and 0xbd00-0xbfff due to PCI_BRIDGE_CTL_NO_ISA mode.

Does this patch help?

Ivan.

--- linux/arch/i386/kernel/pci-i386.c~	Thu Nov 21 20:34:54 2002
+++ linux/arch/i386/kernel/pci-i386.c	Mon Nov 25 20:04:38 2002
@@ -223,9 +223,19 @@ static void __init pcibios_allocate_reso
 				continue;
 			if (!r->start)		/* Address not assigned at all */
 				continue;
-			if (r->flags & IORESOURCE_IO)
+			if (r->flags & IORESOURCE_IO) {
 				disabled = !(command & PCI_COMMAND_IO);
-			else
+				if ((r->start & 0x300) && r->start > 0x400) {
+					printk(KERN_ERR "PCI: bad alignment "
+					       "of IO region %d [%04lx] of "
+					       "device %s\n",
+						idx, r->start, dev->slot_name);
+					/* We'll assign a new address later */
+					r->end -= r->start;
+					r->start = 0;
+					continue;
+				}
+			} else
 				disabled = !(command & PCI_COMMAND_MEMORY);
 			if (pass == disabled) {
 				DBG("PCI: Resource %08lx-%08lx (f=%lx, d=%d, p=%d)\n",

  parent reply	other threads:[~2002-11-25 17:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25 15:11 Richard Mueller
2002-11-25 14:35 ` Stephan von Krawczynski
2002-11-25 16:33 ` Robert Olsson
2002-11-25 17:03 ` Gianni Tedesco
2002-11-25 17:18 ` Ivan Kokshaysky [this message]
2002-11-26 11:26   ` Re[2]: " Richard Mueller

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=20021125201803.A830@jurassic.park.msu.ru \
    --to=ink@jurassic.park.msu.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mueller@teamix.net \
    /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®