From: Yinghai Lu <yinghai@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>,
Jeff Garrett <jeff@jgarrett.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Bjorn Helgaas <bjorn.helgaas@hp.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Kernel Testers List <kernel-testers@vger.kernel.org>,
Linux PCI <linux-pci@vger.kernel.org>,
Myron Stowe <myron.stowe@hp.com>,
Matthew Garrett <mjg59@srcf.ucam.org>,
Ingo Molnar <mingo@elte.hu>
Subject: [PATCH -v2] x86/pci: print ioh resources only
Date: Thu, 28 Jan 2010 11:10:14 -0800 [thread overview]
Message-ID: <4B61E116.6050208@kernel.org> (raw)
In-Reply-To: <alpine.LFD.2.00.1001281052510.22433@localhost.localdomain>
don't use them for peer pci root bus resource yet.
so could cross check _CRS results
-v2: dont put info struct in stack according to Linus.
because that is kbytes big
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
---
arch/x86/pci/intel_bus.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
Index: linux-2.6/arch/x86/pci/intel_bus.c
===================================================================
--- linux-2.6.orig/arch/x86/pci/intel_bus.c
+++ linux-2.6/arch/x86/pci/intel_bus.c
@@ -53,13 +53,9 @@ static void __devinit pci_root_bus_res(s
if (dev->cfg_size < 0x120)
return;
- if (pci_root_num >= PCI_ROOT_NR) {
- printk(KERN_DEBUG "intel_bus.c: PCI_ROOT_NR is too small\n");
+ info = kmalloc(sizeof(struct pci_root_info), GFP_KERNEL);
+ if (!info)
return;
- }
-
- info = &pci_root_info[pci_root_num];
- pci_root_num++;
pci_read_config_word(dev, IOH_LCFGBUS, &word);
bus_base = (word & 0xff);
next prev parent reply other threads:[~2010-01-28 19:10 UTC|newest]
Thread overview: 116+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-24 21:54 2.6.33-rc5: Reported regressions from 2.6.32 Rafael J. Wysocki
2010-01-24 21:54 ` [Bug #14791] Something has been broken in the network stack this week Rafael J. Wysocki
2010-01-24 22:18 ` Ben Hutchings
2010-01-24 22:30 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #14937] WARNING: at kernel/lockdep.c:2830 Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #14946] All kernels after 2.6.32-git10 show only 1 CPU Rafael J. Wysocki
2010-01-25 1:41 ` Sid Boyce
[not found] ` <4B5CF6CB.90001-QgLWrMLu8clzjhtm8Ag3mw@public.gmane.org>
2010-01-25 21:04 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #14949] drm_vm.c:drm_mmap: possible circular locking dependency detected Rafael J. Wysocki
2010-01-25 8:28 ` Borislav Petkov
2010-01-24 22:04 ` [Bug #14924] Weird hard hangs when rendering 'some' web-sites in Firefox Rafael J. Wysocki
2010-01-25 13:55 ` Américo Wang
2010-01-25 19:26 ` David
[not found] ` <4B5DF061.1070704-Os2QIKb4eqJd3aXB8m+yKQ@public.gmane.org>
2010-01-25 21:02 ` Rafael J. Wysocki
2010-01-26 3:06 ` Américo Wang
2010-01-24 22:04 ` [Bug #14859] System timer firing too much without cause Rafael J. Wysocki
2010-01-24 22:34 ` Shawn Starr
[not found] ` <201001241734.50803.shawn.starr-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org>
2010-01-24 23:07 ` Rafael J. Wysocki
2010-01-25 10:35 ` Thomas Gleixner
[not found] ` <alpine.LFD.2.00.1001251103200.2906-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-25 16:53 ` Shawn Starr
[not found] ` <201001251153.59084.shawn.starr-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org>
2010-01-25 17:20 ` Thomas Gleixner
[not found] ` <alpine.LFD.2.00.1001251808480.5926-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-25 17:30 ` Shawn Starr
2010-01-25 20:59 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #14792] Misdetection of the TV output Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #14950] tbench regression with 2.6.33-rc1 Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #14999] possible circular locking dependency detected in rfkill at suspend Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15000] Thinkpad dock button no longer works Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15032] Oops in uart_resume_port() on resume Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15025] Oops in ext4 driver Rafael J. Wysocki
2010-01-24 22:43 ` Steinar H. Gunderson
[not found] ` <20100124224330.GA2230-6Z/AllhyZU4@public.gmane.org>
2010-01-24 23:09 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15017] kexec regression, radeon/kms irq related (bisected) Rafael J. Wysocki
2010-01-25 3:26 ` Alex Deucher
[not found] ` <a728f9f91001241926m4c19aedbvda295fe3c7daade-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-25 6:28 ` Dave Airlie
2010-01-24 22:04 ` [Bug #15036] soft lockup in dmesg after suspend/resume Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15039] leds_alix2: can't allocate I/O for GPIO Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15038] drm/ksm: fbdev blanking regression Rafael J. Wysocki
2010-01-24 22:45 ` Johan Hovold
2010-01-24 23:13 ` Rafael J. Wysocki
[not found] ` <201001250013.48523.rjw-KKrjLPT3xs0@public.gmane.org>
2010-01-25 6:28 ` Dave Airlie
2010-01-25 21:07 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15043] Display goes off with i915.powersave=1 Rafael J. Wysocki
2010-01-27 17:57 ` Jesse Barnes
2010-01-28 5:05 ` Soeren Sonnenburg
2010-02-04 20:09 ` Soeren Sonnenburg
2010-01-24 22:04 ` [Bug #15076] System panic under load with clockevents_program_event Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15124] PCI host bridge windows ignored (works with pci=use_crs) Rafael J. Wysocki
2010-01-26 7:19 ` Jeff Garrett
2010-01-26 12:48 ` Rafael J. Wysocki
2010-01-26 17:32 ` Bjorn Helgaas
[not found] ` <201001261032.37053.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2010-01-26 18:02 ` Rafael J. Wysocki
2010-01-26 18:17 ` Jesse Barnes
2010-01-26 18:22 ` Yinghai Lu
2010-01-26 22:57 ` Yinghai Lu
[not found] ` <4B5F735B.2040308-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-01-27 16:45 ` Bjorn Helgaas
2010-01-27 16:53 ` Jesse Barnes
2010-01-27 20:45 ` Bjorn Helgaas
[not found] ` <201001271345.54454.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2010-01-27 20:50 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.1001271247450.3570-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-27 20:59 ` Jesse Barnes
2010-01-27 21:02 ` Jesse Barnes
2010-01-28 1:32 ` Yinghai Lu
2010-01-27 21:03 ` Bjorn Helgaas
[not found] ` <201001271403.41955.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2010-01-27 23:34 ` Yinghai Lu
2010-01-28 4:26 ` Bjorn Helgaas
[not found] ` <1264652762.24020.5.camel-s4l7/+/UzmD/9pzu0YdTqQ@public.gmane.org>
2010-01-28 5:53 ` Yinghai Lu
[not found] ` <4B61266F.1060600-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-01-28 10:45 ` Rafael J. Wysocki
2010-01-28 16:09 ` Bjorn Helgaas
[not found] ` <201001280909.46043.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2010-01-28 18:20 ` Yinghai Lu
2010-01-28 19:03 ` Jesse Barnes
2010-01-28 20:28 ` Rafael J. Wysocki
[not found] ` <201001282128.33389.rjw-KKrjLPT3xs0@public.gmane.org>
2010-01-28 20:35 ` Jesse Barnes
2010-01-29 2:44 ` Zhang Rui
[not found] ` <4B61D554.9000003-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-01-28 20:20 ` Bjorn Helgaas
2010-01-28 20:31 ` Bjorn Helgaas
[not found] ` <201001281331.06218.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2010-01-28 21:14 ` Yinghai Lu
2010-01-31 2:45 ` Matthew Garrett
2010-01-28 1:35 ` Jesse Barnes
2010-01-28 4:01 ` Jeff Garrett
2010-01-28 1:50 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.1001271748300.3570-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-28 3:24 ` Jesse Barnes
2010-01-28 4:02 ` Jeff Garrett
[not found] ` <20100128040226.GB8964-184d8XiO+QJg9hUCZPvPmw@public.gmane.org>
2010-01-28 16:24 ` Jesse Barnes
2010-01-28 18:13 ` Yinghai Lu
[not found] ` <4B61D3C6.1050104-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-01-28 20:12 ` Jesse Barnes
2010-01-28 18:30 ` [PATCH] x86/pci: print ioh resources only Yinghai Lu
[not found] ` <4B61D7C4.1050405-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-01-28 18:54 ` Linus Torvalds
2010-01-28 19:10 ` Yinghai Lu [this message]
[not found] ` <4B61E116.6050208-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-01-28 19:30 ` [PATCH -v2] " Olivier Galibert
[not found] ` <20100128193027.GA13741-dF3JGIbHi9Ffir3NkZym1w@public.gmane.org>
2010-01-28 21:06 ` Yinghai Lu
[not found] ` <201001261902.13911.rjw-KKrjLPT3xs0@public.gmane.org>
2010-01-26 18:21 ` [Bug #15124] PCI host bridge windows ignored (works with pci=use_crs) Linus Torvalds
2010-01-26 18:16 ` Linus Torvalds
[not found] ` <alpine.LFD.2.00.1001260955060.3574-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-26 18:21 ` Yinghai Lu
[not found] ` <4B5F32A9.7090105-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-01-26 18:35 ` Jesse Barnes
2010-01-24 22:04 ` [Bug #15125] hung task - jbd2/dm-1-8 (during raid rebuild) Rafael J. Wysocki
2010-01-24 22:49 ` Michael Breuer
[not found] ` <4B5CCE6D.5060402-P//MSfjsEjDQT0dZR+AlfA@public.gmane.org>
2010-01-24 23:14 ` Rafael J. Wysocki
[not found] ` <201001250014.36889.rjw-KKrjLPT3xs0@public.gmane.org>
2010-01-30 19:21 ` Michael Breuer
2010-01-24 22:04 ` [Bug #15131] [OOPS] radeon kms Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15128] Boot regression on AMD Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15129] [drm:i915_gem_execbuffer] *ERROR* i915_gem_do_execbuffer returns -512 Rafael J. Wysocki
2010-01-27 17:58 ` Jesse Barnes
2010-01-27 21:03 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15126] REGRESSION for RT2561/RT61 in 2.6.33 Rafael J. Wysocki
2010-01-24 22:32 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1001241730360.441-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-01-24 22:34 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15132] OOPS's with large initramfs Rafael J. Wysocki
2010-01-24 22:55 ` Nigel Kukard
[not found] ` <4B5CCFC5.1090002-pYARk8SH/DY@public.gmane.org>
2010-01-24 23:15 ` Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15133] Wake on LAN doesn't work in sky2 Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15139] e1000: transmit queue 0 timed out Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15138] evdev regression on macbook Rafael J. Wysocki
2010-01-24 22:04 ` [Bug #15137] NULL pointer dereference in vlan_skb_recv Rafael J. Wysocki
2010-01-25 13:43 ` Américo Wang
2010-01-25 21:07 ` Rafael J. Wysocki
[not found] ` <201001252207.53023.rjw-KKrjLPT3xs0@public.gmane.org>
2010-01-25 21:30 ` David Miller
[not found] ` <20100125.133024.41664373.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2010-01-25 21:58 ` Rafael J. Wysocki
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=4B61E116.6050208@kernel.org \
--to=yinghai@kernel.org \
--cc=bjorn.helgaas@hp.com \
--cc=jbarnes@virtuousgeek.org \
--cc=jeff@jgarrett.org \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mjg59@srcf.ucam.org \
--cc=myron.stowe@hp.com \
--cc=rjw@sisk.pl \
--cc=torvalds@linux-foundation.org \
/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;
as well as URLs for NNTP newsgroup(s).