mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: teanropo@cc.jyu.fi, gregkh@suse.de, jonsmirl@gmail.com,
	linux-kernel@vger.kernel.org
Subject: Re: [SOLVED] Re: 2.6.13-rc2 hangs at boot
Date: Tue, 12 Jul 2005 17:41:19 +0400	[thread overview]
Message-ID: <20050712174119.A31613@jurassic.park.msu.ru> (raw)
In-Reply-To: <200507081354.j68Ds02b020296@harpo.it.uu.se>; from mikpe@csd.uu.se on Fri, Jul 08, 2005 at 03:54:00PM +0200

On Fri, Jul 08, 2005 at 03:54:00PM +0200, Mikael Pettersson wrote:
> Same here: 2.6.13-rc2 vanilla and 2.6.13-rc2 + patch #2 above both hang,
> but 2.6.13-rc2 + patch #1 boots fine.

I suspect that those larger (4K) cardbus IO windows are clashing with
some legacy IO ports. If so, this could be avoided by setting ISAEN
bridge control bit.
It would be interesting to see whether the patch below works or not...

Ivan.

--- 2.6.13-rc2-git4/drivers/pci/setup-bus.c	Tue Jul 12 16:11:19 2005
+++ linux/drivers/pci/setup-bus.c	Tue Jul 12 16:43:33 2005
@@ -88,6 +88,7 @@ pci_setup_cardbus(struct pci_bus *bus)
 {
 	struct pci_dev *bridge = bus->self;
 	struct pci_bus_region region;
+	u16 ctrl;
 
 	printk("PCI: Bus %d, cardbus bridge: %s\n",
 		bus->number, pci_name(bridge));
@@ -135,6 +136,12 @@ pci_setup_cardbus(struct pci_bus *bus)
 		pci_write_config_dword(bridge, PCI_CB_MEMORY_LIMIT_1,
 					region.end);
 	}
+
+	/* Disable legacy ISA IO port forwarding, as we do
+	   for PCI-to-PCI bridges. */
+	pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
+	ctrl |= PCI_CB_BRIDGE_CTL_ISA;
+	pci_write_config_word(bridge, PCI_CB_BRIDGE_CONTROL, ctrl);
 }
 
 /* Initialize bridges with base/limit values we have collected.

  reply	other threads:[~2005-07-12 13:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-08 13:54 Mikael Pettersson
2005-07-12 13:41 ` Ivan Kokshaysky [this message]
2005-07-12 16:00   ` Tero Roponen
2005-07-12 16:07     ` Ivan Kokshaysky
2005-07-12 16:21       ` Tero Roponen
  -- strict thread matches above, loose matches on Subject: below --
2005-07-06 13:47 Tero Roponen
2005-07-07  1:27 ` Jon Smirl
2005-07-07  9:59   ` Ivan Kokshaysky
2005-07-07 10:33     ` Tero Roponen
2005-07-07 12:31       ` Ivan Kokshaysky
2005-07-07 12:47         ` Tero Roponen
2005-07-07 13:41           ` Ivan Kokshaysky
2005-07-07 14:13             ` Tero Roponen
2005-07-08  6:28               ` Ivan Kokshaysky
2005-07-08  7:57                 ` [SOLVED] " Tero Roponen
2005-07-08  9:19                   ` Ivan Kokshaysky
2005-07-08  9:38                     ` Tero Roponen
2005-07-08  9:45                       ` Ivan Kokshaysky

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=20050712174119.A31613@jurassic.park.msu.ru \
    --to=ink@jurassic.park.msu.ru \
    --cc=gregkh@suse.de \
    --cc=jonsmirl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@csd.uu.se \
    --cc=teanropo@cc.jyu.fi \
    /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®