Re: [PATCH] Add TAINT_FIRMWARE_WORKAROUND on MTRR fixup

From: David Rientjes
Date: Tue Oct 18 2011 - 19:41:36 EST


On Tue, 18 Oct 2011, Prarit Bhargava wrote:

> TAINT_FIRMWARE_WORKAROUND should be set when an MTRR fixup is done.
>
> Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>
> Cc: x86@xxxxxxxxxx

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

Adding the x86 maintainers to the cc, not sure if x86@xxxxxxxxxx is
silently failing (or is it just an alias to them that is already back up
working)?

> ---
> arch/x86/kernel/cpu/mtrr/generic.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch/x86/kernel/cpu/mtrr/generic.c
> index a71efcd..e1fe7f4 100644
> --- a/arch/x86/kernel/cpu/mtrr/generic.c
> +++ b/arch/x86/kernel/cpu/mtrr/generic.c
> @@ -547,6 +547,7 @@ static void generic_get_mtrr(unsigned int reg, unsigned long *base,
>
> if (tmp != mask_lo) {
> printk(KERN_WARNING "mtrr: your BIOS has configured an incorrect mask, fixing it.\n");
> + add_taint(TAINT_FIRMWARE_WORKAROUND);
> mask_lo = tmp;
> }
> }
--
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/