Re: [PATCH] Blacklist DMAR on Intel G31/G33 chipsets
From: Ingo Molnar
Date: Fri Sep 05 2008 - 14:35:30 EST
* David Woodhouse <dwmw2@xxxxxxxxxxxxx> wrote:
> Some BIOSes (the Intel DG33BU, for example) wrongly claim to have DMAR
> when they don't. Avoid the resulting crashes when it doesn't work as
> expected.
>
> Signed-off-by: David Woodhouse <David.Woodhouse@xxxxxxxxx>
> ---
>
> This time, I build-tested it with CONFIG_DMAR actually enabled. Sorry.
> I'd still be grateful if someone could test it on a DG33BU with the
> old BIOS though, since I've killed mine. I tested the DMI version, but
> not this one.
ok - fixing this makes sense. I have two worries about this patch.
Firstly, the quirk is keyed off an ACPI capability which is quite bad if
someone boots with ACPI off. (which is still quite possible) The DMAR is
PCI enumerated so there's nothing inherently ACPI about this. A DMI
quirk (which will work even if ACPI is disabled) looks more robust.
Secondly, keying off the PCI ID and assuming a BIOS bug based on the
presence of an ACPI table can indeed get incoherent results as you
suspect. It's better to single out the specific BIOS as long as the DMI
info is specific enough. Even if that PCI ID is never supposed to be
combined with VT-d (because, obviously, VT-d needs a different chipset),
it's just a sloppy concept in general.
The fact that you've already tested the DMI version and cannot test the
new version is one more reason to favor the first patch.
Could you please resend the initial DMI version of the
drivers/pci/intel-iommu.c commit stand-alone, not embedded in a 'misc'
pull request, and with Jesse Cc:-ed as well? 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/