[lkml]   [2007]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: LFENCE instruction (was: [rfc][patch 3/3] x86: optimise barriers)
    On Mon, 15 Oct 2007 22:47:42 +0200 (CEST)
    Mikulas Patocka <> wrote:

    > > According to latest memory ordering specification documents from
    > > Intel and AMD, both manufacturers are committed to in-order loads
    > > from cacheable memory for the x86 architecture. Hence, smp_rmb()
    > > may be a simple barrier.
    > >
    > >
    > >
    > Hi
    > I'm just wondering about one thing --- what is LFENCE instruction
    > good for?
    > SFENCE is for enforcing ordering in write-combining buffers (it
    > doesn't have sense in write-back cache mode).
    > MFENCE is for preventing of moving stores past loads.
    > But what is LFENCE for? I read the above documents and they already
    > say that CPUs have ordered loads.

    The cpus also have an explicit set of instructions that deliberately do
    unordered stores/loads, and s/lfence etc are mostly designed for those.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-10-15 23:41    [W:0.025 / U:3.424 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site