From: rajesh.shah@intel.com
To: ak@suse.de, len.brown@intel.com, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz,
acpi-devel@lists.sourceforge.net,
Rajesh Shah <rajesh.shah@intel.com>
Subject: [patch 2/2] x86_64: Collect host bridge resources
Date: Fri, 20 May 2005 17:42:41 -0700 [thread overview]
Message-ID: <20050521004506.842235000@csdlinux-1> (raw)
In-Reply-To: 20050521004239.581618000@csdlinux-1
[-- Attachment #1: x86_64-host-bridge-resources.patch --]
[-- Type: text/plain, Size: 1716 bytes --]
This patch reads and stores host bridge resources reported by
ACPI BIOS for x86_64 systems. This is needed since ACPI hotplug
code now uses the PCI core for resource management. This patch
simply adds the boot parameter (acpi=root_resources) to enable
the functionality that is implemented in arch/i386.
Signed-off-by: Rajesh Shah <rajesh.shah@intel.com>
Index: linux-2.6.12-rc4-mm2/include/asm-x86_64/acpi.h
===================================================================
--- linux-2.6.12-rc4-mm2.orig/include/asm-x86_64/acpi.h
+++ linux-2.6.12-rc4-mm2/include/asm-x86_64/acpi.h
@@ -143,10 +143,16 @@ static inline void acpi_disable_pci(void
acpi_noirq_set();
}
extern int acpi_irq_balance_set(char *str);
+extern int acpi_read_root_resources;
+static inline void acpi_set_read_root_resources(void)
+{
+ acpi_read_root_resources = 1;
+}
#else
static inline void acpi_noirq_set(void) { }
static inline void acpi_disable_pci(void) { }
static inline int acpi_irq_balance_set(char *str) { return 0; }
+static inline void acpi_set_read_root_resources(void) { }
#endif
#ifdef CONFIG_ACPI_SLEEP
Index: linux-2.6.12-rc4-mm2/arch/x86_64/kernel/setup.c
===================================================================
--- linux-2.6.12-rc4-mm2.orig/arch/x86_64/kernel/setup.c
+++ linux-2.6.12-rc4-mm2/arch/x86_64/kernel/setup.c
@@ -319,6 +319,9 @@ static __init void parse_cmdline_early (
acpi_disable_pci();
else if (!memcmp(from, "acpi=noirq", 10))
acpi_noirq_set();
+ /* Use ACPI to read host bridge resources */
+ else if (!memcmp(from, "acpi=root_resources", 19))
+ acpi_set_read_root_resources();
else if (!memcmp(from, "acpi_sci=edge", 13))
acpi_sci_flags.trigger = 1;
--
next prev parent reply other threads:[~2005-05-21 0:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-21 0:42 [patch 0/2] Collecting host bridge resources rajesh.shah
2005-05-21 0:42 ` [patch 1/2] i386: collect " rajesh.shah
2005-05-21 0:42 ` rajesh.shah [this message]
2005-05-23 16:15 ` [patch 2/2] x86_64: Collect " Andi Kleen
2005-05-24 0:57 ` Rajesh Shah
2005-05-24 12:05 ` Andi Kleen
2005-05-24 14:58 ` Ivan Kokshaysky
2005-05-24 15:45 ` Rajesh Shah
2005-05-24 16:58 ` Ivan Kokshaysky
2005-05-24 17:37 ` Rajesh Shah
2005-05-26 9:34 ` 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=20050521004506.842235000@csdlinux-1 \
--to=rajesh.shah@intel.com \
--cc=acpi-devel@lists.sourceforge.net \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.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