Re: [PATCH 2/9] x86: introduce a set of platform feature flags
From: Ingo Molnar
Date: Fri Jun 26 2009 - 05:45:37 EST
* Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> > Whether a given platform has a 'standard PC' or some custom
> > driver then depends on that driver's init sequence - it's not a
> > central thing.
>
> How exactly do you propose to handle boot memory allocation (eg
> EBDA) with a driver ? Perhaps you can explain "driverize" as it
> isn't in any dictionary and I'm not at all clear what you are on
> about ?
Which bit is not clear? We've been continuously 'driverizing' the
jumbled mess of x86 platform support code in the past ~1-2 years.
Things like x86_quirks or struct apic and other similar code
restructuring and cleanups. They are (of course) not classic 'driver
core' drivers (many of the core kernel facilities are not available
yet at this early stage), but properly abstracted, function vector
driven approaches are still a must.
This series of patches increases the mess in that area, and that's a
step backwards. It sprinkles the code with a fair amount of 'if
(feature_x)' conditions instead of cleanly separating out proper
abstractions.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/