login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
13
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memory allocation
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Yinghai Lu <yhlu.kernel@...>
To: Gary Hade <garyhade@...>
Cc: <jbarnes@...>, <linux-kernel@...>, <linux-pci@...>
Subject:
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memory allocation
Date: Tuesday, May 13, 2008 - 1:48 pm
On Mon, May 12, 2008 at 3:30 PM, Gary Hade <garyhade@us.ibm.com> wrote:
quoted text
> On Mon, May 12, 2008 at 02:43:44PM -0700, Yinghai Lu wrote: > > On Mon, May 12, 2008 at 1:57 PM, Gary Hade <garyhade@us.ibm.com> wrote: > <snip> > > > > --- linux-2.6.26-rc2/arch/x86/pci/common.c.orig 2008-05-12 10:59:58.000000000 -0700 > > > +++ linux-2.6.26-rc2/arch/x86/pci/common.c 2008-05-12 11:22:05.000000000 -0700 > > > @@ -121,6 +121,21 @@ void __init dmi_check_skip_isa_align(voi > > > dmi_check_system(can_skip_pciprobe_dmi_table); > > > } > > > > > > +static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev) > > > +{ > > > + struct resource *rom_r = &dev->resource[PCI_ROM_RESOURCE]; > > > + > > > + if (pci_probe & PCI_NOASSIGN_ROMS) { > > > + if (rom_r->parent) > > > + return; > > > + if (rom_r->start) { > > > + /* we deal with BIOS assigned ROM later */ > > > + return; > > > + } > > > + rom_r->start = rom_r->end = rom_r->flags = 0; > > > + } > > > +} > > > + > > > /* > > > * Called after each bus is probed, but before its children > > > * are examined. > > > @@ -128,7 +143,11 @@ void __init dmi_check_skip_isa_align(voi > > > > > > void __devinit pcibios_fixup_bus(struct pci_bus *b) > > > { > > > + struct pci_dev *dev; > > > + > > > pci_read_bridge_bases(b); > > > + list_for_each_entry(dev, &b->devices, bus_list) > > > + pcibios_fixup_device_resources(dev); > > > } > > > > or put check > > + if (pci_probe & PCI_NOASSIGN_ROMS) { > > > > out of loop? > > I could certainly do that but I had intended that the new > pcibios_fixup_device_resources function act as a container where > other kinds of fixups could be added later. Do you (or others) > think the additional cycles consumed by this approach are an > issue here?
ok, then wonder if we can don't assign roms for x86_64 by default. can we use pci rom in 64 bit kernel? YH --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] PCI: boot parameter to avoid expansion ROM memory al...
, Gary Hade
, (Mon May 12, 4:57 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Yinghai Lu
, (Mon May 12, 5:43 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Gary Hade
, (Mon May 12, 6:30 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Yinghai Lu
, (Tue May 13, 1:48 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Gary Hade
, (Tue May 13, 5:00 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Yinghai Lu
, (Tue May 13, 5:11 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Jesse Barnes
, (Tue May 13, 6:28 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Yinghai Lu
, (Tue May 13, 7:23 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Gary Hade
, (Tue May 13, 8:07 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Gary Hade
, (Wed May 14, 12:20 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Jesse Barnes
, (Tue May 20, 1:57 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Gary Hade
, (Tue May 20, 4:00 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Jesse Barnes
, (Tue May 20, 4:16 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Gary Hade
, (Wed May 21, 1:29 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Jesse Barnes
, (Wed May 21, 1:40 pm)
Re: [RFC] which drivers need to map ROM BARs?
, Jesse Barnes
, (Wed May 14, 12:58 pm)
Re: [PATCH] PCI: boot parameter to avoid expansion ROM memor...
, Yinghai Lu
, (Tue May 13, 5:44 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Faik Uygur
Re: Linux 2.6.21-rc1
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Trent Piepho
[PATCH] [POWERPC] Improve (in|out)_beXX() asm code
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jens Axboe
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
955 guests
online.
Online users
zeekec
gimmegimme
Syndicate