[lkml]   [2004]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] Fix x86-64 properly with MSI & Suresh's change

    Together with Suresh's recent LH workaround: this patch makes x86-64
    compile again with MSI on. i386 uses an CPU number, x86-64
    an CPU mask for MSI_TARGET_CPUS and that didn't work very well.

    I must admit I don't fully understand how MSI irq affinity
    is supposed to work (why do you always redirect to the current CPU?),
    but this matches i386 which is presumably the best tested MSI

    Signed-off-by: Andi Kleen <>

    diff -u linux/include/asm-x86_64/msi.h-o linux/include/asm-x86_64/msi.h
    --- linux/include/asm-x86_64/msi.h-o 2004-09-24 13:04:06.000000000 +0200
    +++ linux/include/asm-x86_64/msi.h 2004-09-27 12:19:56.000000000 +0200
    @@ -7,10 +7,11 @@
    #define ASM_MSI_H

    #include <asm/desc.h>
    +#include <asm/smp.h>

    #define LAST_DEVICE_VECTOR 232
    #define MSI_TARGET_CPU_SHIFT 12
    +#define MSI_TARGET_CPU hard_smp_processor_id()

    #endif /* ASM_MSI_H */

    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: 2005-03-22 14:06    [W:0.034 / U:10.684 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site