Re: [PATCH 3/9] x86/moorestown: add moorestown platform flags

From: Ingo Molnar
Date: Fri Jun 26 2009 - 10:45:04 EST



* Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> > We will gladly take clean x86 patches that abstract away
> > lowlevel details of x86 platforms, and have been taking them and
> > have been writing them for a long time. If this patch-set can
> > shape itself in such a way (as i requested), without hindering
> > the common case, it is certainly welcome.
>
> Lets try again shall we. I'l repeat the relevant bits of the mail
> you quoted bits from and ignored almost all of

Below is my reply to your above points (already sent in another
mail) - which is really just mostly re-hashing the (rather obvious
looking) things that have been said before.

Ingo

---------------------->

* Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> > The thing is, you are trying to defend a v1 patch-set here that
> > is really indefensible: it's ugly and deficient in numerous
> > smaller and larger details. I outlined numerous deficiencies
> > already - and i'll review v2 too to see what else is there to
> > fix.
>
> No I'm trying to understand what you actually want the thing to
> look like.

It's a case by case thing and i pointed out a few specific
directions in the review. The IO-APIC changes should probably go on
top of Jeremy's IO-APIC driver-ization patches. They dont
necessarily need their own IO-APIC driver (if the resulting line
count increase is too much), but they should not wreck Jeremy's
IO-APIC patches.

Bootup quirks that are small modificatons to existing PC
initialization sequences should go into x86_quirks.

Timer related changes (the APB system timer) are mostly modular
already by virtue of half of it being a clocksource and clockevents
driver. The remaining bit of system timer handling should be
abstracted out as a 'struct x86_system_timer' kind of structure,
with ->init, ->timer_irq and ->shutdown functions.

[ Although it is beyond me why ABP was done - why wasnt HPET good
enough? HPET can do per CPU clockevents too and it's just as
off-chip (and hence fundamentally slow) as ABP. ]

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/