lkml.org 
[lkml]   [2006]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PCI init vs. memory init
Linas Vepstas writes:

> You mentioned that the sequence of inits seemed wrong, that the
> PCI init should be done later, after the memory init. I think
> I agree; but when I took a very very quick look at the code, there
> was no obvious hook in later init to move the PCI init over to.
>
> Are you pursuing this further? Should I dig into it? Any bright
> ideas? Am I missing something obvious?

I assume you're talking about find_and_init_phbs() and eeh_init(),
which are currently called from pSeries_setup_arch().

Would a core_initcall be early enough for those? It seems to me that
it probably would be. What are the actual dependencies? Clearly it
needs to be before pcibios_init(), which is a subsys_initcall. Is
there anything else that they need to come before?

> There are several spots in in the powerpc PCI init code where
> a boot_mem alloc is used instead of kmalloc, and this boot_mem is
> then hacked around in the case of a PCI hotplug remove. It would
> be nice to fix this...

Indeed.

Paul.
-
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/

\
 
 \ /
  Last update: 2006-04-29 09:53    [W:0.246 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site