Re: [PATCH] powerpc - Initialize the irq radix tree earlier

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Ellerman
Date: Thursday, July 31, 2008 - 4:40 am

On Thu, 2008-07-31 at 11:40 +0200, Sebastien Dugue wrote:
ed
pts
nto

Hi Sebastien,

This is a nice cleanup, I think :)

,

Note irq_radix_revmap_init() loops over all irq_hosts ...

s/pseries/smp.c
)

But now it's only called from the xics setup code.

Which seems a bit ugly. In practice it doesn't matter because at the
moment xics is the only user of the radix revmap. But if we're going to
switch to this sort of initialisation I think xics should only be
init'ing the revmap for itself.


This boot ordering stuff is pretty hairy, so I might have missed
something, but this is how the code is ordered AFAICT:
=EF=BB=BF
start_kernel()
	init_IRQ()
	...
	local_irq_enable()
	...
	rest_init()
		kernel_thread()
			kernel_init()
				smp_prepare_cpus()
					smp_xics_probe()	(via smp_ops->probe())


What's stopping us from taking an irq between local_irq_enable() and
smp_xics_probe() ?  Is it just that no one's request_irq()'ed them yet?


cheers

--=20
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] powerpc - Initialize the irq radix tree earlier, Sebastien Dugue, (Thu Jul 31, 2:40 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Michael Ellerman, (Thu Jul 31, 4:40 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Sebastien Dugue, (Thu Jul 31, 5:00 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Sebastien Dugue, (Thu Jul 31, 5:10 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Michael Ellerman, (Thu Jul 31, 5:58 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Michael Ellerman, (Thu Jul 31, 6:01 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Sebastien Dugue, (Thu Jul 31, 6:26 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Michael Ellerman, (Thu Jul 31, 6:39 am)
Re: [PATCH] powerpc - Initialize the irq radix tree earlier, Sebastien Dugue, (Thu Jul 31, 7:14 am)