Re: [PATCH] Athlon Prefetch workaround for 2.6.0test6

From: Nick Piggin (piggin_at_cyberone.com.au)
Date: 09/30/03

  • Next message: Patrick Mochel: "Re: pm: Revert swsusp to 2.6.0-test3"
    Date:	Tue, 30 Sep 2003 10:50:57 +1000
    To: bill davidsen <davidsen@tmr.com>
    
    

    bill davidsen wrote:

    >In article <20030929125629.GA1746@averell>, Andi Kleen <ak@muc.de> wrote:
    >
    >| It removes the previous dumb in kernel workaround for this and shrinks the
    >| kernel by >10k.
    >|
    >| Small behaviour change is that a SIGBUS fault for a *_user access will
    >| cause an EFAULT now, no SIGBUS.
    >|
    >| This version addresses all criticism that I got for previous versions.
    >|
    >| - Only checks on AMD K7+ CPUs.
    >| - Computes linear address for VM86 mode or code segments
    >| with non zero base.
    >| - Some cleanup
    >| - No pointer comparisons
    >| - More comments
    >
    >I have to try this on a P4 and K7, but WRT "Only checks on AMD K7+ CPUs"
    >I hope you meant "only generates code if AMD CPU is target" and not that
    >the code size penalty is still there for CPUs which don't need it.
    >
    >Will check Wednesday, life is very busy right now.
    >

    No, the code is not conditionally compiled. That is a different issue to
    this patch though. The target CPU selection scheme doesn't work at all
    like you would expect and its impossible to compile this sort of code
    out (when on x86 arch). See Adrian's code to rationalise cpu selection.

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


  • Next message: Patrick Mochel: "Re: pm: Revert swsusp to 2.6.0-test3"

    Relevant Pages

    • Re: RFC: [2.6 patch] better i386 CPU selection
      ... CPU selection? ... > It seems the Geode support isn't fully merged in 2.6? ... Handelsregister: Amtsgericht Hildesheim, HRA 2686 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Cant boot 2.6.1-mm4 or -mm5
      ... Does anyone have a slightly-sane early printk patch ... equal) fixes boot problem. ... >> possible that there is problem with new CPU selection but I alaways compiled ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED
      ... > I must say that it does seem to be causing quite a few problems and doesn't ... The cpu selection patch is perhaps a bit prominent and therefore the ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] embedding 2.6 or more findings on kernel size
      ... I'd prefer to switch i386 cpu selection to a different scheme which ... You rejected my i386 cpu selection patch for 2.6 some time ago, ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)