Re: [PATCH] x86: Don't write io_apic ID if it is not changed

From: Ingo Molnar
Date: Mon Aug 16 2010 - 03:28:47 EST



* Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:

> Yinghai Lu <yinghai@xxxxxxxxxx> writes:
>
> > For 32bit mptable path, setup_ids_from_mpc() always write io apic id
> > register, even there is no change needed.
> >
> > So try to do that when they are different bewteen reading out and
> > mptable
>
> What is the advantage of not writing the value?

Just guessing, but if other OSs dont do it we might surprise buggy hardware
[and trigger erratas in them], so this would be a standard 'dont touch the hw
unless necessary' defensive move.

Similar bugs are not unprecedented.

Thanks,

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/