28 Aug, 2015

1 commit

  • The effort to replace mtrr_add() with architecture agnostic
    arch_phys_wc_add() is complete, this will ensure write-combining
    implementations (PAT on x86) is taken advantage instead of using
    MTRR. With the effort done now, hide direct MTRR access for
    drivers.

    The legacy user-space /proc/mtrr ABI is not affected.

    Update x86 documentation on MTRR to reflect the completion of
    the phasing out of direct access to MTRR, also add a note on
    platform firmware code use of MTRRs based on the obituary
    discussion of MTRRs on Linux [0].

    [0] http://lkml.kernel.org/r/1438991330.3109.196.camel@hp.com

    Signed-off-by: Luis R. Rodriguez
    Cc:
    Cc: Andy Lutomirski
    Cc: Andy Walls
    Cc: Antonino Daplas
    Cc: Borislav Petkov
    Cc: Daniel Vetter
    Cc: Dave Airlie
    Cc: Dave Hansen
    Cc: Davidlohr Bueso
    Cc: Doug Ledford
    Cc: H. Peter Anvin
    Cc: Jean-Christophe Plagniol-Villard
    Cc: Juergen Gross
    Cc: Linus Torvalds
    Cc: Mel Gorman
    Cc: Peter Zijlstra
    Cc: Suresh Siddha
    Cc: Thomas Gleixner
    Cc: Tomi Valkeinen
    Cc: Toshi Kani
    Cc: Ville Syrjälä
    Cc: Vlastimil Babka
    Cc: airlied@linux.ie
    Cc: benh@kernel.crashing.org
    Cc: bhelgaas@google.com
    Cc: dan.j.williams@intel.com
    Cc: konrad.wilk@oracle.com
    Cc: linux-fbdev@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-media@vger.kernel.org
    Cc: mst@redhat.com
    Cc: netdev@vger.kernel.org
    Cc: vinod.koul@intel.com
    Cc: xen-devel@lists.xensource.com
    Link: http://lkml.kernel.org/r/1440443613-13696-12-git-send-email-mcgrof@do-not-panic.com
    Signed-off-by: Ingo Molnar

    Luis R. Rodriguez
     

27 May, 2015

1 commit

  • As part of the effort to phase out MTRR use document
    write-combining MTRR effects on pages with different non-PAT
    page attributes flags and different PAT entry values. Extend
    arch_phys_wc_add() documentation to clarify power of two sizes /
    boundary requirements as we phase out mtrr_add() use.

    Lastly hint towards ioremap_uc() for corner cases on device
    drivers working with devices with mixed regions where MTRR size
    requirements would otherwise not enable write-combining
    effective memory types.

    Signed-off-by: Luis R. Rodriguez
    Signed-off-by: Borislav Petkov
    Cc: Andy Lutomirski
    Cc: Antonino Daplas
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: Daniel Vetter
    Cc: Dave Airlie
    Cc: Dave Hansen
    Cc: Davidlohr Bueso
    Cc: Denys Vlasenko
    Cc: H. Peter Anvin
    Cc: Jean-Christophe Plagniol-Villard
    Cc: Jonathan Corbet
    Cc: Juergen Gross
    Cc: Linus Torvalds
    Cc: Mel Gorman
    Cc: Peter Zijlstra
    Cc: Suresh Siddha
    Cc: Thomas Gleixner
    Cc: Tomi Valkeinen
    Cc: Ville Syrjälä
    Cc: Vlastimil Babka
    Cc: linux-fbdev@vger.kernel.org
    Link: http://lkml.kernel.org/r/1430343851-967-3-git-send-email-mcgrof@do-not-panic.com
    Link: http://lkml.kernel.org/r/1432628901-18044-10-git-send-email-bp@alien8.de
    Signed-off-by: Ingo Molnar

    Luis R. Rodriguez
     

28 Jul, 2008

1 commit