Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in





On Fri, 11 Jan 2008, Matthew Wilcox wrote:

Ivan's patch doesn't start enabling MMCONFIG in more places than we
currently do. It makes us use conf1 accesses for all accesses below
256 bytes. That fixes all known problems to date.

.. and I agree with that patch. But there will be people who try to access
extended space by mistake, and they'll have a hard-locked machine or
something.

Tell me what *other* armor plating you could have that actually works?

The armour plating that already exists -- pci=nommconf.

No. It needs to be automatic, OR THE OTHER WAY AROUND.

Ie we disable the unsafe feature on purpose, and then force people who
access it to do so *consciously*.

Extended config space is different, for chissake! It's not even like it's
just a bigger normal config space where normal config accesses just
overflow into it. It really does have different rules etc.

Linus
--
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/



Relevant Pages

  • Re: [PATCH 1/1] pci: Block config access during BIST (resend)
    ... It actually only works for 4 byte accesses. ... It will certainly make the patch ... given device could have its config space blocked for a long time. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in
    ... Ivan's patch doesn't start enabling MMCONFIG in more places than we ... It makes us use conf1 accesses for all accesses below ... just a bigger normal config space where normal config accesses just ...
    (Linux-Kernel)
  • Re: [PATCH] radeonfb: (#2) Implement proper workarounds for PLL accesses
    ... > This patch implements the proper ones, ... > accesses, and thus requires the previous patch to make sure we do not ... > features in the accel init code. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: NS83820 2.6.0-test5 driver seems unstable on IA64
    ... a patch for the driver in 2.6.0-test5 is appended. ... accesses... ... the console messages saying `unaligned access' ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • [PATCH] Block on access to temporarily unavailable pci device
    ... This reimplementation uses an rw semaphore to block accesses. ... I'll post the patch I used to test blocking device accesses separately. ... * Prevent the user from accessing PCI config space when it's unsafe to do ... * This function blocks any userspace PCI config accesses from occurring. ...
    (Linux-Kernel)