From: Dominik Brodowski <linux@dominikbrodowski.net>
To: Andrew Morton <akpm@osdl.org>, greg@kroah.com, rajesh.shah@intel.com
Cc: linux-kernel@vger.kernel.org
Subject: ACPI-based PCI resources: PCMCIA bugfix, but resources missing in trees
Date: Sun, 26 Jun 2005 16:04:12 +0200 [thread overview]
Message-ID: <20050626140411.GA8597@dominikbrodowski.de> (raw)
In-Reply-To: <20050626040329.3849cf68.akpm@osdl.org>
On Sun, Jun 26, 2005 at 04:03:29AM -0700, Andrew Morton wrote:
> - Lots of merges. I'm holding off on the 80-odd pcmcia patches until we get
> the recent PCI breakage sorted out.
pci-yenta-cardbus-fix.patch and the following patch should solve the
initialization time trouble. However, the ACPI-based PCI resource handling
is badly broken, IMHO:
- many resources of devices don't show up in the resource trees (
/proc/iomem and /proc/ioports) any longer. This means that PCMCIA, but
also possibly other subsystems (ISA, PnP, ...) do not know which resources
it cannot use.
- verify_root_windows() should fail if there are no iomem _or_ ioport
resources, not only if there are no iomem _and_ ioport resources.
Nonetheless, with the init-time trouble (hopefully) solved, I'd say that it
is time for the PCMCIA patches to get into mainline.
Dominik
Don't auto-configure yenta sockets for PCMCIA devices if it is connected to
the root PCI bus on the x86 or x86_64 architectures. Previously, this was
handled by the "ioport_resource"/"iomem_resource" check a few lines below,
but with the new ACPI-based resource handling this doesn't catch all cases
any longer.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
--- 2.6.12-mm2/drivers/pcmcia/rsrc_nonstatic.c.orig 2005-06-26 15:04:57.000000000 +0200
+++ 2.6.12-mm2/drivers/pcmcia/rsrc_nonstatic.c 2005-06-26 15:09:02.000000000 +0200
@@ -779,6 +779,17 @@
if (!s->cb_dev || !s->cb_dev->bus)
return -ENODEV;
+#if defined(CONFIG_X86) || defined(CONFIG_X86_64)
+ /* If this is the root bus, the risk of hitting
+ * some strange system devices which aren't protected
+ * by either ACPI resource tables or properly requested
+ * resources is too big. Therefore, don't do auto-adding
+ * of resources at the moment.
+ */
+ if (s->cb_dev->bus->number == 0)
+ return -EINVAL;
+#endif
+
for (i=0; i < PCI_BUS_NUM_RESOURCES; i++) {
res = s->cb_dev->bus->resource[i];
if (!res)
next prev parent reply other threads:[~2005-06-26 14:06 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-26 11:03 2.6.12-mm2 Andrew Morton
2005-06-26 11:42 ` 2.6.12-mm2 Russell King
2005-06-26 23:17 ` 2.6.12-mm2 Grant Coady
2005-06-27 8:11 ` 2.6.12-mm2 Russell King
2005-06-26 12:04 ` 2.6.12-mm2 Michał Piotrowski
2005-06-27 2:50 ` Problems with Firewire and -mm kernels (was: Re: 2.6.12-mm2) Rogério Brito
2005-06-27 23:45 ` Andrew Morton
2005-06-28 1:00 ` Rogério Brito
2005-06-28 2:22 ` Rogério Brito
2005-06-28 3:22 ` Andrew Morton
2005-06-28 4:00 ` Ben Collins
2005-06-28 6:12 ` Rogério Brito
2005-06-28 16:15 ` Ben Collins
2005-07-01 1:01 ` Problems with Firewire and -mm kernels Rogério Brito
2005-07-01 1:12 ` Ben Collins
2005-07-01 2:23 ` Rogério Brito
2005-07-01 2:28 ` Problems with Firewire and -mm kernels (and vanilla 2.6.13-rc1) Rogério Brito
2005-07-01 2:44 ` Problems with Firewire and -mm kernels Rogério Brito
2005-07-01 3:18 ` Ben Collins
2005-07-01 4:01 ` Dan Dennedy
2005-07-01 4:37 ` Stefan Richter
2005-07-01 4:12 ` Stefan Richter
2005-07-01 4:30 ` Rogério Brito
2005-07-01 5:15 ` Ben Collins
2005-06-28 7:42 ` Stefan Richter
2005-06-28 7:46 ` Andrew Morton
2005-06-28 8:37 ` Rogério Brito
2005-06-28 16:25 ` Ben Collins
2005-06-28 16:38 ` Giuseppe Bilotta
2005-06-28 8:18 ` Rogério Brito
2005-06-28 18:47 ` Stefan Richter
2005-06-30 0:43 ` Rogério Brito
2005-06-26 14:04 ` Dominik Brodowski [this message]
2005-06-26 19:17 ` ACPI-based PCI resources: PCMCIA bugfix, but resources missing in trees Andrew Morton
2005-06-26 19:34 ` Russell King
2005-06-26 20:14 ` Dominik Brodowski
2005-06-27 20:18 ` Rajesh Shah
2005-06-27 20:26 ` Dominik Brodowski
2005-06-27 1:38 ` Grant Coady
2005-06-27 5:59 ` Dominik Brodowski
2005-06-27 8:55 ` Grant Coady
2005-06-26 14:18 ` 2.6.12-mm2 Adam Kropelin
2005-06-26 19:25 ` 2.6.12-mm2 Andrew Morton
2005-06-26 19:39 ` 2.6.12-mm2 Vojtech Pavlik
2005-06-27 13:13 ` 2.6.12-mm2 Vojtech Pavlik
2005-06-26 16:05 ` [-mm patch] kernel/irq/autoprobe.c: remove an unused variable Adrian Bunk
2005-06-26 19:51 ` 2.6.12-mm2 Brice Goglin
2005-06-27 0:44 ` 2.6.12-mm2 J.A. Magallon
2005-06-27 0:56 ` 2.6.12-mm2 Andrew Morton
2005-06-29 0:31 ` [sparc32] Kconfig fixups (was Re: 2.6.12-mm2) William Lee Irwin III
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=20050626140411.GA8597@dominikbrodowski.de \
--to=linux@dominikbrodowski.net \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rajesh.shah@intel.com \
/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®