lkml.org 
[lkml]   [2003]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
    On Thu, 18 Sep 2003, Pavel Machek wrote:

    > > I think Alan brought up a very good point. Even if you
    > > use a generic kernel that avoids prefetch use on Athlon
    > > (which I am opposed to), it doesn't solve the problem
    > > of user space programs detecting that the ISA supports
    > > prefetch and using prefetch instructions and hitting the
    > > errata on Athlon.
    > >
    > > The user space problem worries me more, because the expectation
    > > is that if CPUID says the program can use perfetch, it could
    > > and should regardless of what the kernel decided to do here.
    >
    > User programs should not rely on cpuid; they should read /proc/cpuinfo
    > exactly because this kind of errata.

    That's fine, but impacts portability. I don't think there is a right
    way, since the o/s may not know about some features and the CPU may be
    optimistic. Unless they are "recent Linux only" programs they may well
    check the CPU itself, there are reasons for it in portable code.

    --
    bill davidsen <davidsen@tmr.com>
    CTO, TMR Associates, Inc
    Doing interesting things with little computers since 1979.

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

    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:2.067 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site